diff options
Diffstat (limited to 'standalone/checksum.h')
-rw-r--r-- | standalone/checksum.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/standalone/checksum.h b/standalone/checksum.h index 0f787ce2b5c..a63b1b4f064 100644 --- a/standalone/checksum.h +++ b/standalone/checksum.h @@ -12,16 +12,12 @@ #include "internal_defs.h" // Hardware CRC32 is supported at compilation via the following: -// - for i386 & x86_64: -mcrc32 (earlier: -msse4.2) +// - for i386 & x86_64: -msse4.2 // - for ARM & AArch64: -march=armv8-a+crc or -mcrc // An additional check must be performed at runtime as well to make sure the // emitted instructions are valid on the target host. -#if defined(__CRC32__) -// NB: clang has <crc32intrin.h> but GCC does not -#include <smmintrin.h> -#define CRC32_INTRINSIC FIRST_32_SECOND_64(__builtin_ia32_crc32si, __builtin_ia32_crc32di) -#elif defined(__SSE4_2__) +#ifdef __SSE4_2__ #include <smmintrin.h> #define CRC32_INTRINSIC FIRST_32_SECOND_64(_mm_crc32_u32, _mm_crc32_u64) #endif |