Skip to content

Commit

Permalink
liblzma: Check HAVE_USABLE_CLMUL before omitting CRC32 table.
Browse files Browse the repository at this point in the history
This was split from the prior commit so it could be easily applied to
the 5.4 branch.

Closes: #77
  • Loading branch information
JiaT75 committed Feb 1, 2024
1 parent ca9015f commit 97f9ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liblzma/check/crc32_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 97f9ba5

Please sign in to comment.