diff options
author | Jia Tan <jiat0218@gmail.com> | 2024-02-01 16:07:03 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2024-02-01 20:09:11 +0800 |
commit | 97f9ba50b84e67b3dcb5b17dd5d3e1d14f9ad1d0 (patch) | |
tree | 43548fb5fa8b5ed3dbfc2840acdfb06f4d7980ba /src | |
parent | liblzma: Check HAVE_USABLE_CLMUL before omitting CRC64 table. (diff) | |
download | xz-97f9ba50b84e67b3dcb5b17dd5d3e1d14f9ad1d0.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/check/crc32_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/check/crc32_table.c b/src/liblzma/check/crc32_table.c index 41a80dcb..09b00fa3 100644 --- a/src/liblzma/check/crc32_table.c +++ b/src/liblzma/check/crc32_table.c @@ -15,9 +15,9 @@ // 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. -#if (defined(__x86_64__) && defined(__SSSE3__) \ +#if defined(HAVE_USABLE_CLMUL) && ((defined(__x86_64__) && defined(__SSSE3__) \ && defined(__SSE4_1__) && defined(__PCLMUL__)) \ - || (defined(__e2k__) && __iset__ >= 6) + || (defined(__e2k__) && __iset__ >= 6)) # define X86_CLMUL_NO_TABLE 1 #endif |