liblzma: Rename crc32_aarch64.h to crc32_arm64.h.
commit761f5b69a4c778c8bcb09279b845b07c28790575
authorJia Tan <jiat0218@gmail.com>
Mon, 22 Jan 2024 12:54:56 +0000 (22 20:54 +0800)
committerJia Tan <jiat0218@gmail.com>
Thu, 1 Feb 2024 12:09:11 +0000 (1 20:09 +0800)
tree10bfb5cd27861f5e062567532ec76246e06bd4b5
parent455a08609caa3223066a717fb01bfa42c5dba47d
liblzma: Rename crc32_aarch64.h to crc32_arm64.h.

Even though the proper name for the architecture is aarch64, this
project uses ARM64 throughout. So the rename is for consistency.

Additionally, crc32_arm64.h was slightly refactored for the following
changes:

   * Added MSVC, FreeBSD, and macOS support in
     is_arch_extension_supported().

   * crc32_arch_optimized() now checks the size when aligning the
     buffer.

   * crc32_arch_optimized() loop conditions were slightly modified to
     avoid both decrementing the size and incrementing the buffer
     pointer.

   * Use the intrinsic wrappers defined in <arm_acle.h> because GCC and
     Clang name them differently.

   * Minor spacing and comment changes.
CMakeLists.txt
src/liblzma/check/Makefile.inc
src/liblzma/check/crc32_aarch64.h [deleted file]
src/liblzma/check/crc32_arm64.h [new file with mode: 0644]
src/liblzma/check/crc32_fast.c
src/liblzma/check/crc64_fast.c