Lines Matching defs:BASE
10 #define BASE 65521U /* largest prime smaller than 65536 */
12 /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
23 /* note that this assumes BASE is 65521, where 65536 % 65521 == 15
34 if (a >= BASE) a -= BASE; \
52 if (a >= BASE) a -= BASE; \
55 # define MOD(a) a %= BASE
56 # define MOD28(a) a %= BASE
57 # define MOD63(a) a %= BASE
73 if (adler >= BASE)
74 adler -= BASE;
76 if (sum2 >= BASE)
77 sum2 -= BASE;
91 if (adler >= BASE)
92 adler -= BASE;
93 MOD28(sum2); /* only added so many BASE's */
151 sum1 += (adler2 & 0xffff) + BASE - 1;
152 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
153 if (sum1 >= BASE) sum1 -= BASE;
154 if (sum1 >= BASE) sum1 -= BASE;
155 if (sum2 >= ((unsigned long)BASE << 1)) sum2 -= ((unsigned long)BASE << 1);
156 if (sum2 >= BASE) sum2 -= BASE;