Home
last modified time | relevance | path

Searched refs:adler (Results 1 – 7 of 7) sorted by relevance

/xnu-11417.121.6/libkern/zlib/
H A Dadler32.c48 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
91 adler32(uLong adler, const Bytef *buf, uInt len) in adler32() argument
97 sum2 = (adler >> 16) & 0xffff; in adler32()
98 adler &= 0xffff; in adler32()
102 adler += buf[0]; in adler32()
103 if (adler >= BASE) in adler32()
104 adler -= BASE; in adler32()
105 sum2 += adler; in adler32()
108 return adler | (sum2 << 16); in adler32()
118 adler += *buf++; in adler32()
[all …]
H A Ddeflate.c350 strm->adler = adler32(strm->adler, dictionary, dictLength); in deflateSetDictionary()
414 strm->adler = in deflateReset()
608 strm->adler = z_crc32(0L, Z_NULL, 0); in deflate()
644 strm->adler = z_crc32(strm->adler, s->pending_buf, in deflate()
673 putShortMSB(s, (uInt)(strm->adler >> 16)); in deflate()
674 putShortMSB(s, (uInt)(strm->adler & 0xffff)); in deflate()
676 strm->adler = adler32(0L, Z_NULL, 0); in deflate()
687 strm->adler = z_crc32(strm->adler, s->pending_buf + beg, in deflate()
698 strm->adler = z_crc32(strm->adler, s->pending_buf + beg, in deflate()
716 strm->adler = z_crc32(strm->adler, s->pending_buf + beg, in deflate()
[all …]
H A Dinflate.c140 strm->adler = 1; /* to support ill-conceived Java test suite */ in inflateReset()
652 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
787 strm->adler = state->check = z_crc32(0L, Z_NULL, 0); in inflate()
795 strm->adler = state->check = REVERSE(hold); in inflate()
804 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
1127 strm->adler = state->check = in inflate()
1191 strm->adler = state->check = in inflate()
/xnu-11417.121.6/osfmk/kdp/output_stages/
H A Dout_zlib.c117 strm->adler = z_crc32(strm->adler, buf, len); in zlib_zinput()
/xnu-11417.121.6/iokit/Kernel/
H A DIONVRAMCHRPHandler.cpp52 uint32_t adler; member
144 uint32_t adler, lowHalf, highHalf; in adler32() local
162 adler = (highHalf << 16) | lowHalf; in adler32()
164 return adler; in adler32()
170 return ((struct apple_nvram_header *)buf)->adler; in nvram_get_adler()
258 apple_hdr->adler = adler32_with_version(buf, len, version); in nvram_set_apple_header()
H A DIOPMrootDomain.cpp12381 strm->adler = z_crc32(strm->adler, buf, len);
/xnu-11417.121.6/libkern/libkern/
H A Dzlib.h126 uLong adler; /* adler32 value of the uncompressed data */ member
1307 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));