liblzma: Refactor crc_common.h.
commit455a08609caa3223066a717fb01bfa42c5dba47d
authorJia Tan <jiat0218@gmail.com>
Mon, 22 Jan 2024 12:49:30 +0000 (22 20:49 +0800)
committerJia Tan <jiat0218@gmail.com>
Thu, 1 Feb 2024 12:09:11 +0000 (1 20:09 +0800)
treea693bbb9237ad28a04e6ed29af6bf3037c40bac4
parent61908e816049af7a9f43ea804a57ee8570e2e644
liblzma: Refactor crc_common.h.

The CRC_GENERIC is now split into CRC32_GENERIC and CRC64_GENERIC, since
the ARM64 optimizations will be different between CRC32 and CRC64.

For the same reason, CRC_ARCH_OPTIMIZED is split into
CRC32_ARCH_OPTIMIZED and CRC64_ARCH_OPTIMIZED.

ifunc will only be used with x86-64 CLMUL because the runtime detection
methods needed with ARM64 are not compatible with ifunc.
src/liblzma/check/crc32_fast.c
src/liblzma/check/crc64_fast.c
src/liblzma/check/crc_common.h