-
-
Notifications
You must be signed in to change notification settings - Fork 308
Clean up SSE4.2 support #1542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up SSE4.2 support #1542
Conversation
Defines changing meaning: X86_SSE42 used to mean the compiler supports crc asm fallback. X86_SSE42_CRC_INTRIN used to mean compiler supports SSE4.2 intrinsics. X86_SSE42 now means compiler supports SSE4.2 intrinsics. This therefore also fixes the adler32_sse42 checks, since those were depending on SSE4.2 intrinsics but was mistakenly checking the X86_SSE42 define. Now the X86_SSE42 define actually means what it appears to.
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #1542 +/- ##
===========================================
+ Coverage 83.89% 83.91% +0.01%
===========================================
Files 132 132
Lines 10850 10850
Branches 2794 2796 +2
===========================================
+ Hits 9103 9105 +2
+ Misses 1048 1047 -1
+ Partials 699 698 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
|
Ah cool, looks like you got to the bottom of the real issue |
|
This passes all tests, just waiting for reviews. |
|
LGTM |
Clean up SSE4.2 support, and no longer use asm fallback or gcc builtin.
Defines changing meaning:
X86_SSE42used to mean the compiler supports crc asm fallback.X86_SSE42_CRC_INTRINused to mean compiler supports SSE4.2 intrinsics.X86_SSE42now means compiler supports SSE4.2 intrinsics.This therefore also fixes the adler32_sse42 checks, since those wanted to check for SSE4.2 intrinsics but were mistakenly checking for crc asm fallback support. Now the
X86_SSE42define actually means what it appears to.Also contains the commit to move check_c_source_compile_or_run macro to the script where it gets used, only semi-related to the rest of this PR.
Fixes #1529