]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
remove UNROLL_MORE as suggested
authorLucinda May Phipps <landfillbaby69@gmail.com>
Tue, 7 Jun 2022 13:59:39 +0000 (14:59 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
arch/arm/crc32_acle.c

index 383c61f1f31549803b70d84f52899d5be175e257..dc56815e9c5ba53b218ad22c1ec2286e142003c8 100644 (file)
@@ -39,16 +39,6 @@ uint32_t crc32_acle(uint32_t crc, const unsigned char *buf, uint64_t len) {
 
     const uint64_t *buf8 = (const uint64_t *) buf4;
 
-#ifdef UNROLL_MORE
-    while (len >= 4 * sizeof(uint64_t)) {
-        c = __crc32d(c, *buf8++);
-        c = __crc32d(c, *buf8++);
-        c = __crc32d(c, *buf8++);
-        c = __crc32d(c, *buf8++);
-        len -= 4 * sizeof(uint64_t);
-    }
-#endif
-
     while (len >= sizeof(uint64_t)) {
         c = __crc32d(c, *buf8++);
         len -= sizeof(uint64_t);
@@ -71,20 +61,6 @@ uint32_t crc32_acle(uint32_t crc, const unsigned char *buf, uint64_t len) {
     buf = (const unsigned char *) buf2;
 #else /* __aarch64__ */
 
-#  ifdef UNROLL_MORE
-    while (len >= 8 * sizeof(uint32_t)) {
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        c = __crc32w(c, *buf4++);
-        len -= 8 * sizeof(uint32_t);
-    }
-#  endif
-
     while (len >= sizeof(uint32_t)) {
         c = __crc32w(c, *buf4++);
         len -= sizeof(uint32_t);