diff options
author | Chenxi Mao <chenxi.mao2013@gmail.com> | 2024-01-09 17:23:11 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2024-01-27 21:49:26 +0800 |
commit | 849d0f282a6a890c5cf5a0e0f02980b12d9ebb0f (patch) | |
tree | 2f8da4c7fcf61a8b9f6425f3075727c972e6bf94 /CMakeLists.txt | |
parent | Bump version number for 5.5.1alpha. (diff) | |
download | xz-849d0f282a6a890c5cf5a0e0f02980b12d9ebb0f.tar.xz |
Speed up CRC32 calculation on ARM64
The CRC32 instructions in ARM64 can calculate the CRC32 result
for 8 bytes in a single operation, making the use of ARM64
instructions much faster compared to the general CRC32 algorithm.
Optimized CRC32 will be enabled if ARM64 has CRC extension
running on Linux.
Signed-off-by: Chenxi Mao <chenxi.mao2013@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5573d7b..0cb08fc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,7 @@ add_library(liblzma src/liblzma/check/check.h src/liblzma/check/crc_common.h src/liblzma/check/crc_x86_clmul.h + src/liblzma/check/crc32_aarch64.h src/liblzma/common/block_util.c src/liblzma/common/common.c src/liblzma/common/common.h |