Lines Matching refs:adler
16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
63 uLong ZEXPORT adler32_z(adler, buf, len) in adler32_z() argument
64 uLong adler; in adler32_z()
72 sum2 = (adler >> 16) & 0xffff;
73 adler &= 0xffff;
77 adler += buf[0];
78 if (adler >= BASE)
79 adler -= BASE;
80 sum2 += adler;
83 return adler | (sum2 << 16);
93 adler += *buf++;
94 sum2 += adler;
96 if (adler >= BASE)
97 adler -= BASE;
99 return adler | (sum2 << 16);
110 MOD(adler);
122 adler += *buf++;
123 sum2 += adler;
125 MOD(adler);
130 return adler | (sum2 << 16);
134 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
135 uLong adler; in adler32()
139 return adler32_z(adler, buf, len);