Lines Matching defs:sum2
15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
102 unsigned long sum2;
106 sum2 = (adler >> 16) & 0xffff;
114 sum2 += adler;
115 if (sum2 >= BASE)
116 sum2 -= BASE;
117 return adler | (sum2 << 16);
128 sum2 += adler;
132 MOD4(sum2); /* only added so many BASE's */
133 return adler | (sum2 << 16);
145 MOD(sum2);
157 sum2 += adler;
160 MOD(sum2);
164 return adler | (sum2 << 16);
174 unsigned long sum2;
180 sum2 = rem * sum1;
181 MOD(sum2);
183 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
186 if (sum2 >= (BASE << 1)) sum2 -= (BASE << 1);
187 if (sum2 >= BASE) sum2 -= BASE;
188 return sum1 | (sum2 << 16);