4 * Matchfinding routines optimized for Intel AVX2 (Advanced Vector Extensions).
9 * The author dedicates this file to the public domain.
10 * You can do whatever you want with this file.
13 #include <immintrin.h>
16 matchfinder_init_avx2(pos_t *data, size_t size)
21 if (size % sizeof(__m256i) * 4)
24 if (sizeof(pos_t) == 2)
25 v = _mm256_set1_epi16((u16)MATCHFINDER_NULL);
26 else if (sizeof(pos_t) == 4)
27 v = _mm256_set1_epi32((u32)MATCHFINDER_NULL);
32 n = size / (sizeof(__m256i) * 4);