summaryrefslogtreecommitdiff
path: root/adler32.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 /adler32.c
parent6eea1bad4786eaf3d55e4d60be2a702a41478efb (diff)
Combine CRC32_UNROLL_LESS and ADLER32_UNROLL_LESS into UNROLL_LESS
Diffstat (limited to 'adler32.c')
-rw-r--r--adler32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/adler32.c b/adler32.c
index 6d32159..e502919 100644
--- a/adler32.c
+++ b/adler32.c
@@ -103,13 +103,13 @@ uint32_t ZEXPORT adler32(adler, buf, len)
/* do length NMAX blocks -- requires just one modulo operation */
while (len >= NMAX) {
len -= NMAX;
-#ifndef ADLER32_UNROLL_LESS
+#ifndef UNROLL_LESS
n = NMAX / 16; /* NMAX is divisible by 16 */
#else
n = NMAX / 8; /* NMAX is divisible by 8 */
#endif
do {
-#ifndef ADLER32_UNROLL_LESS
+#ifndef UNROLL_LESS
DO16(buf); /* 16 sums unrolled */
buf += 16;
#else
@@ -123,7 +123,7 @@ uint32_t ZEXPORT adler32(adler, buf, len)
/* do remaining bytes (less than NMAX, still just one modulo) */
if (len) { /* avoid modulos if none remaining */
-#ifndef ADLER32_UNROLL_LESS
+#ifndef UNROLL_LESS
while (len >= 16) {
len -= 16;
DO16(buf);