]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Add optimized crc32 for POWER8 and later processors
authorMatheus Castanho <msc@linux.ibm.com>
Wed, 16 Jun 2021 17:36:24 +0000 (14:36 -0300)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 12 Aug 2021 07:09:02 +0000 (09:09 +0200)
commit044badc1177e58327718dab483389a14f25b7ff5
treeca3dabebfe7a5794b89581f072b591051f4ac3dc
parent6d4096adf4749870620a95149371645a79948b42
Add optimized crc32 for POWER8 and later processors

This commit adds an optimized version of the crc32 function based
on crc32-vpmsum from https://github.com/antonblanchard/crc32-vpmsum/ .
The code has been relicensed to the zlib license.

This is the C implementation created by Rogerio Alves <rogealve@br.ibm.com>

It makes use of vector instructions to speed up CRC32 algorithm. Decompression
times were improved by +30% on tests.

Based on Daniel Black's work for the original zlib (madler/zlib#478).
CMakeLists.txt
arch/power/Makefile.in
arch/power/crc32_constants.h [new file with mode: 0644]
arch/power/crc32_power8.c [new file with mode: 0644]
arch/power/fallback_builtins.h [new file with mode: 0644]
configure
functable.c