diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-05-12 11:48:14 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-05-12 11:48:14 +0200 |
commit | 0cd2fda2a376cfa359840f1e7e0b7338c9f5e15b (patch) | |
tree | 1cd874d4a0e8cad2cc0dff908e65a56fc6ae7594 /adler32.c | |
parent | 6eea1bad4786eaf3d55e4d60be2a702a41478efb (diff) |
Combine CRC32_UNROLL_LESS and ADLER32_UNROLL_LESS into UNROLL_LESS
Diffstat (limited to 'adler32.c')
-rw-r--r-- | adler32.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |