/* Compare eight consecutive candidate start positions of the same shapelet. Each lane retains NumPy's internal 8-way double reduction and its second centering pass in std. Strict chronological comparisons preserve first ties. */ #if defined(__x86_64__) && (defined(__GNUC__) || defined(__clang__)) && !defined(_WIN32) #include #define SHAPE512 __attribute__((target("avx512f"))) typedef __m512d PositionTile; static SHAPE512 inline PositionTile tile_sum(const PositionTile *x, int len) { if(len<8) { PositionTile s=_mm512_set1_pd(-0.); for(int j=0;j8)lanes=8; __mmask8 active=(__mmask8)((1U<1?stop-1:1); } } } } } } #endif