aboutsummaryrefslogtreecommitdiff
path: root/adler32.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:27 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:27 -0700
commit7a33a861d1526894272a8a4b08527ce32316d750 (patch)
tree3611b8e0f01c20f809015f30fba0a599daf1413b /adler32.c
parenta2506218cd8c32416d0d15260834f3c23d910fc8 (diff)
downloadzlib-7a33a861d1526894272a8a4b08527ce32316d750.tar.gz
zlib-7a33a861d1526894272a8a4b08527ce32316d750.tar.bz2
zlib-7a33a861d1526894272a8a4b08527ce32316d750.zip
zlib 1.2.1v1.2.1
Diffstat (limited to 'adler32.c')
-rw-r--r--adler32.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/adler32.c b/adler32.c
index bad930e..624a169 100644
--- a/adler32.c
+++ b/adler32.c
@@ -21,23 +21,23 @@
21#ifdef NO_DIVIDE 21#ifdef NO_DIVIDE
22# define MOD(a) \ 22# define MOD(a) \
23 do { \ 23 do { \
24 if (a > (BASE << 16)) a -= (BASE << 16); \ 24 if (a >= (BASE << 16)) a -= (BASE << 16); \
25 if (a > (BASE << 15)) a -= (BASE << 15); \ 25 if (a >= (BASE << 15)) a -= (BASE << 15); \
26 if (a > (BASE << 14)) a -= (BASE << 14); \ 26 if (a >= (BASE << 14)) a -= (BASE << 14); \
27 if (a > (BASE << 13)) a -= (BASE << 13); \ 27 if (a >= (BASE << 13)) a -= (BASE << 13); \
28 if (a > (BASE << 12)) a -= (BASE << 12); \ 28 if (a >= (BASE << 12)) a -= (BASE << 12); \
29 if (a > (BASE << 11)) a -= (BASE << 11); \ 29 if (a >= (BASE << 11)) a -= (BASE << 11); \
30 if (a > (BASE << 10)) a -= (BASE << 10); \ 30 if (a >= (BASE << 10)) a -= (BASE << 10); \
31 if (a > (BASE << 9)) a -= (BASE << 9); \ 31 if (a >= (BASE << 9)) a -= (BASE << 9); \
32 if (a > (BASE << 8)) a -= (BASE << 8); \ 32 if (a >= (BASE << 8)) a -= (BASE << 8); \
33 if (a > (BASE << 7)) a -= (BASE << 7); \ 33 if (a >= (BASE << 7)) a -= (BASE << 7); \
34 if (a > (BASE << 6)) a -= (BASE << 6); \ 34 if (a >= (BASE << 6)) a -= (BASE << 6); \
35 if (a > (BASE << 5)) a -= (BASE << 5); \ 35 if (a >= (BASE << 5)) a -= (BASE << 5); \
36 if (a > (BASE << 4)) a -= (BASE << 4); \ 36 if (a >= (BASE << 4)) a -= (BASE << 4); \
37 if (a > (BASE << 3)) a -= (BASE << 3); \ 37 if (a >= (BASE << 3)) a -= (BASE << 3); \
38 if (a > (BASE << 2)) a -= (BASE << 2); \ 38 if (a >= (BASE << 2)) a -= (BASE << 2); \
39 if (a > (BASE << 1)) a -= (BASE << 1); \ 39 if (a >= (BASE << 1)) a -= (BASE << 1); \
40 if (a > BASE) a -= BASE; \ 40 if (a >= BASE) a -= BASE; \
41 } while (0) 41 } while (0)
42#else 42#else
43# define MOD(a) a %= BASE 43# define MOD(a) a %= BASE