* m4/crc-x86_64.m4 (gl_CRC_X86_64_PCLMUL):
Check that the compiler supports __m128i_u, too,
since we’re using the type now. Issue reported in
the same message from Lasse Collin.
2025-01-17 Paul Eggert <eggert@cs.ucla.edu>
+ crc-x86_64: port to old GCC compilers
+ * m4/crc-x86_64.m4 (gl_CRC_X86_64_PCLMUL):
+ Check that the compiler supports __m128i_u, too,
+ since we’re using the type now. Issue reported in
+ the same message from Lasse Collin.
+
crc-x86_64: better fix for unaligned access
Avoid undefined behavior in a way that doesn’t require
the input buffer to be aligned.
__m128i a, b;
a = _mm_clmulepi64_si128 (a, b, 0x00);
a = _mm_shuffle_epi8 (a, b);
+ static __m128i_u u;
+ b = _mm_loadu_si128 (&u);
return __builtin_cpu_supports ("pclmul");
}
]])