diff options
author | Lucinda May Phipps <landfillbaby69@gmail.com> | 2022-06-07 14:59:39 +0100 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2023-03-17 21:27:56 +0100 |
commit | ec6ef014ead49ecdb0a2567e2ceea030628ba5ea (patch) | |
tree | 1db3ee120ac6cb51871a68d18f97e7e2f4fc0e3a | |
parent | a636726a3945175073ccab8def49e7e8f4aa9186 (diff) |
remove UNROLL_MORE as suggested
-rw-r--r-- | arch/arm/crc32_acle.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/crc32_acle.c b/arch/arm/crc32_acle.c index 383c61f..dc56815 100644 --- a/arch/arm/crc32_acle.c +++ b/arch/arm/crc32_acle.c @@ -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); |