]> git.lizzy.rs Git - zlib.git/commit
Add use of the ARMv8 crc32 instructions when requested.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 18 Feb 2019 03:48:57 +0000 (19:48 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 18 Feb 2019 03:48:57 +0000 (19:48 -0800)
commit52fc78baf216dac4e76c5eb3bd940f68e87086da
tree01eb3d1a091ef2e35fd2142061ca1efab0a1b590
parentaec89faa2e366e5cff501310771afaf16289c6ad
Add use of the ARMv8 crc32 instructions when requested.

Define the macro Z_ARM_CRC32 at compile time to use the ARMv8
(aarch64) crc32x and crc32b instructions. This code does not check
for the presence of the crc32 instructions. Those instructions are
optional for ARMv8.0, though mandatory for ARMv8.1 and later. The
use of the crc32 instructions is about ten times as fast as the
software braided calculation of the CRC-32. This can noticeably
speed up the decompression of gzip streams.
crc32.c