Lines Matching refs:sum2
18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
70 unsigned long sum2; in adler32() local
74 sum2 = (adler >> 16) & 0xffff; in adler32()
82 sum2 += adler; in adler32()
83 if (sum2 >= BASE) in adler32()
84 sum2 -= BASE; in adler32()
85 return adler | (sum2 << 16); in adler32()
96 sum2 += adler; in adler32()
100 MOD28(sum2); /* only added so many BASE's */ in adler32()
101 return adler | (sum2 << 16); in adler32()
113 MOD(sum2); in adler32()
125 sum2 += adler; in adler32()
128 MOD(sum2); in adler32()
132 return adler | (sum2 << 16); in adler32()
142 unsigned long sum2; in adler32_combine_() local
153 sum2 = rem * sum1; in adler32_combine_()
154 MOD(sum2); in adler32_combine_()
156 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem; in adler32_combine_()
159 if (sum2 >= (BASE << 1)) sum2 -= (BASE << 1); in adler32_combine_()
160 if (sum2 >= BASE) sum2 -= BASE; in adler32_combine_()
161 return sum1 | (sum2 << 16); in adler32_combine_()