Lines Matching refs:adler
15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
97 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
98 uLong adler; in adler32()
106 sum2 = (adler >> 16) & 0xffff;
107 adler &= 0xffff;
111 adler += buf[0];
112 if (adler >= BASE)
113 adler -= BASE;
114 sum2 += adler;
117 return adler | (sum2 << 16);
127 adler += *buf++;
128 sum2 += adler;
130 if (adler >= BASE)
131 adler -= BASE;
133 return adler | (sum2 << 16);
144 MOD(adler);
156 adler += *buf++;
157 sum2 += adler;
159 MOD(adler);
164 return adler | (sum2 << 16);