]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
fix bug #215: use the proper intrinsic __crc32w for words (#217)
authorsebpop <sebpop@gmail.com>
Wed, 7 Nov 2018 09:05:54 +0000 (03:05 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Nov 2018 09:05:54 +0000 (10:05 +0100)
arch/aarch64/crc32_acle.c

index 4608a5dc53f7c24d5450a6adc25015158805e806..cee7825acbba0a8bfb8edce5e055a90534dfb5fa 100644 (file)
@@ -38,7 +38,7 @@ uint32_t crc32_acle(uint32_t crc, const unsigned char *buf, uint64_t len) {
     }
 
     if ((len > 4) && ((ptrdiff_t)buf & 4)) {
-        c = __crc32b(c, *buf4++);
+        c = __crc32w(c, *buf4++);
         len -= 4;
     }