1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

liblzma: Check HAVE_USABLE_CLMUL before omitting CRC32 table.

This was split from the prior commit so it could be easily applied to
the 5.4 branch.

Closes: https://github.com/tukaani-project/xz/pull/77
This commit is contained in:
Jia Tan 2024-02-01 16:07:03 +08:00
parent ca9015f4de
commit 97f9ba50b8

View file

@ -15,9 +15,9 @@
// FIXME: Compared to crc_common.h this has to check for __x86_64__ too // FIXME: Compared to crc_common.h this has to check for __x86_64__ too
// so that in 32-bit builds crc32_x86.S won't break due to a missing table. // so that in 32-bit builds crc32_x86.S won't break due to a missing table.
#if (defined(__x86_64__) && defined(__SSSE3__) \ #if defined(HAVE_USABLE_CLMUL) && ((defined(__x86_64__) && defined(__SSSE3__) \
&& defined(__SSE4_1__) && defined(__PCLMUL__)) \ && defined(__SSE4_1__) && defined(__PCLMUL__)) \
|| (defined(__e2k__) && __iset__ >= 6) || (defined(__e2k__) && __iset__ >= 6))
# define X86_CLMUL_NO_TABLE 1 # define X86_CLMUL_NO_TABLE 1
#endif #endif