4 * Matchfinding routines optimized for Intel SSE2 (Streaming SIMD Extensions).
9 * The author dedicates this file to the public domain.
10 * You can do whatever you want with this file.
13 #include <emmintrin.h>
16 matchfinder_init_sse2(pos_t *data, size_t size)
21 if (size % sizeof(__m128i) * 4)
24 if (sizeof(pos_t) == 2)
25 v = _mm_set1_epi16((u16)MATCHFINDER_NULL);
26 else if (sizeof(pos_t) == 4)
27 v = _mm_set1_epi32((u32)MATCHFINDER_NULL);
32 n = size / (sizeof(__m128i) * 4);