Lines Matching refs:adler
250 UInt adler32( UInt adler, const UChar* buf, UInt len )
257 # define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
298 sum2 = (adler >> 16) & 0xffff;
299 adler &= 0xffff;
303 adler += buf[0];
304 if (adler >= BASE)
305 adler -= BASE;
306 sum2 += adler;
309 return adler | (sum2 << 16);
319 adler += *buf++;
320 sum2 += adler;
322 if (adler >= BASE)
323 adler -= BASE;
325 return adler | (sum2 << 16);
336 MOD(adler);
348 adler += *buf++;
349 sum2 += adler;
351 MOD(adler);
356 return adler | (sum2 << 16);
721 UInt adler = adler32(0, NULL, 0); // initial value
722 adler = adler32(adler, &rd_first8[4], 4);
724 adler = adler32(adler, req->data, req->n_data);
726 if (adler/*computed*/ != rd_adler/*expected*/) goto fail;
885 adler(le32) n_data(le32) data[0 .. n_data-1]
889 adler = adler32(0, NULL, 0);
894 adler = adler32(adler, &wr_first8[4], 4);
896 adler = adler32(adler, res->data, res->n_data);
897 write_UInt_le(&wr_first8[0], adler);