summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-12 11:48:14 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-12 11:48:14 +0200
commit0cd2fda2a376cfa359840f1e7e0b7338c9f5e15b (patch)
tree1cd874d4a0e8cad2cc0dff908e65a56fc6ae7594 /crc32.c
parent6eea1bad4786eaf3d55e4d60be2a702a41478efb (diff)
Combine CRC32_UNROLL_LESS and ADLER32_UNROLL_LESS into UNROLL_LESS
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crc32.c b/crc32.c
index 1653684..b1d5425 100644
--- a/crc32.c
+++ b/crc32.c
@@ -219,7 +219,7 @@ uint32_t ZEXPORT crc32(crc, buf, len)
}
crc = crc ^ 0xffffffff;
-#ifdef CRC32_UNROLL_LESS
+#ifdef UNROLL_LESS
while (len >= 4) {
DO4;
len -= 4;
@@ -260,7 +260,7 @@ static uint32_t crc32_little(uint32_t crc, const unsigned char *buf, unsigned le
buf4 = (const z_crc_t *)(const void *)buf;
-#ifndef CRC32_UNROLL_LESS
+#ifndef UNROLL_LESS
while (len >= 32) {
DOLIT32;
len -= 32;
@@ -304,7 +304,7 @@ static uint32_t crc32_big(uint32_t crc, const unsigned char *buf, unsigned len)
buf4 = (const z_crc_t *)(const void *)buf;
buf4--;
-#ifndef CRC32_UNROLL_LESS
+#ifndef UNROLL_LESS
while (len >= 32) {
DOBIG32;
len -= 32;