Lines Matching defs:BASE
14 #define BASE 65521 /* largest prime smaller than 65536 */
16 /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
27 /* note that this assumes BASE is 65521, where 65536 % 65521 == 15
38 if (a >= BASE) a -= BASE; \
56 if (a >= BASE) a -= BASE; \
59 # define MOD(a) a %= BASE
60 # define MOD28(a) a %= BASE
61 # define MOD63(a) a %= BASE
80 if (adler >= BASE)
81 adler -= BASE;
83 if (sum2 >= BASE)
84 sum2 -= BASE;
98 if (adler >= BASE)
99 adler -= BASE;
100 MOD28(sum2); /* only added so many BASE's */
155 sum1 += (adler2 & 0xffff) + BASE - 1;
156 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
157 if (sum1 >= BASE) sum1 -= BASE;
158 if (sum1 >= BASE) sum1 -= BASE;
159 if (sum2 >= (BASE << 1)) sum2 -= (BASE << 1);
160 if (sum2 >= BASE) sum2 -= BASE;