| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#include "common.h" |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#if defined(HAVE_USABLE_CLMUL) && ((defined(__x86_64__) && defined(__SSSE3__) \ |
| 18 |
&& defined(__SSE4_1__) && defined(__PCLMUL__)) \ |
| 19 |
|| (defined(__e2k__) && __iset__ >= 6)) |
| 20 |
# define NO_CRC32_TABLE |
| 21 |
|
| 22 |
#elif defined(HAVE_ARM64_CRC32) \ |
| 23 |
&& !defined(WORDS_BIGENDIAN) \ |
| 24 |
&& defined(__ARM_FEATURE_CRC32) |
| 25 |
# define NO_CRC32_TABLE |
| 26 |
#endif |
| 27 |
|
| 28 |
|
| 29 |
#if !defined(HAVE_ENCODERS) && defined(NO_CRC32_TABLE) |
| 30 |
|
| 31 |
typedef void lzma_crc32_dummy; |
| 32 |
|
| 33 |
#else |
| 34 |
|
| 35 |
extern const uint32_t lzma_crc32_table[8][256]; |
| 36 |
|
| 37 |
# ifdef WORDS_BIGENDIAN |
| 38 |
# include "crc32_table_be.h" |
| 39 |
# else |
| 40 |
# include "crc32_table_le.h" |
| 41 |
# endif |
| 42 |
#endif |