This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 355
aligned_memchr16ff is not #9
Comments
Really appreciate you noticing this... to be fair I've never tried this on a i386 system--but it sounds like if this code fails on x86 there's probably some aliasing assumption being violated here and it's worth checking out to make it more cross compatible! I may not have time to look at this for a few days, but I'll try to compile in 32 bit mode as soon as I can |
Thanks for the quick response, Daniel. I just committed FreeBSD port of lepton, which has this -- and many other -- patches in it. Note, that none of my machines here have SSE4, so I had to patch lepton to be satisfied with SSE2 and SSSE3. |
Fixed by c5fd505 |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The function assumes, its argument is properly aligned for casting it to
__m128i const *
. The assumption appears valid on FreeBSD/amd64, but on a 32-bit FreeBSD/i386 it causes core-dumps.The below patch makes the function forego the SSE-trickery and always use
memchr
on i386:Are you normally building/testing on 32-bit systems? With this patch I no longer have crashes running the test suit, but 5 of the 40 tests still fail...
The text was updated successfully, but these errors were encountered: