Lines Matching refs:sum2
17 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
69 unsigned long sum2; local
73 sum2 = (adler >> 16) & 0xffff;
81 sum2 += adler;
82 if (sum2 >= BASE)
83 sum2 -= BASE;
84 return adler | (sum2 << 16);
95 sum2 += adler;
99 MOD28(sum2); /* only added so many BASE's */
100 return adler | (sum2 << 16);
112 MOD(sum2);
124 sum2 += adler;
127 MOD(sum2);
131 return adler | (sum2 << 16);
150 unsigned long sum2; local
161 sum2 = rem * sum1;
162 MOD(sum2);
164 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
167 if (sum2 >= ((unsigned long)BASE << 1)) sum2 -= ((unsigned long)BASE << 1);
168 if (sum2 >= BASE) sum2 -= BASE;
169 return sum1 | (sum2 << 16);