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