WojciechMula / sse4-strstr

SIMD (SWAR/SSE/SSE4/AVX2/AVX512F/ARM Neon) of Karp-Rabin algorithm's modification
http://0x80.pl/articles/simd-strfind.html
BSD 2-Clause "Simplified" License
237 stars 27 forks source link

SSE naive implementation is broken #7

Closed WojciechMula closed 6 years ago

WojciechMula commented 6 years ago
$ make test_sse4
SSE naive... FAILED
   string = '$x#' (length 3)
   neddle = '$x#' (length 3)
   expected result = 0, actual result = 18446744073709551615
WojciechMula commented 6 years ago

Fixed by 92a0063088fa9f4d103ea84b6c637ef71b110db0 and 727e44afe3e3768bfdde7fad88e65f4e434354b1.