Home
last modified time | relevance | path

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

123

/external/qemu/distrib/zlib-1.2.8/
Dadler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
65 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
66 uLong adler; in adler32()
74 sum2 = (adler >> 16) & 0xffff;
75 adler &= 0xffff;
79 adler += buf[0];
80 if (adler >= BASE)
81 adler -= BASE;
82 sum2 += adler;
85 return adler | (sum2 << 16);
[all …]
Ddeflate.c343 strm->adler = adler32(strm->adler, dictionary, dictLength);
414 strm->adler =
693 strm->adler = crc32(0L, Z_NULL, 0);
729 strm->adler = crc32(strm->adler, s->pending_buf,
758 putShortMSB(s, (uInt)(strm->adler >> 16));
759 putShortMSB(s, (uInt)(strm->adler & 0xffff));
761 strm->adler = adler32(0L, Z_NULL, 0);
772 strm->adler = crc32(strm->adler, s->pending_buf + beg,
783 strm->adler = crc32(strm->adler, s->pending_buf + beg,
801 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
Dinflate.c114 strm->adler = state->wrap & 1;
682 strm->adler = state->check = adler32(0L, Z_NULL, 0);
810 strm->adler = state->check = crc32(0L, Z_NULL, 0);
816 strm->adler = state->check = ZSWAP32(hold);
824 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1181 strm->adler = state->check =
1244 strm->adler = state->check =
/external/zlib/src/
Dadler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
65 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
66 uLong adler; in adler32()
74 sum2 = (adler >> 16) & 0xffff;
75 adler &= 0xffff;
79 adler += buf[0];
80 if (adler >= BASE)
81 adler -= BASE;
82 sum2 += adler;
85 return adler | (sum2 << 16);
[all …]
Ddeflate.c343 strm->adler = adler32(strm->adler, dictionary, dictLength);
414 strm->adler =
693 strm->adler = crc32(0L, Z_NULL, 0);
729 strm->adler = crc32(strm->adler, s->pending_buf,
758 putShortMSB(s, (uInt)(strm->adler >> 16));
759 putShortMSB(s, (uInt)(strm->adler & 0xffff));
761 strm->adler = adler32(0L, Z_NULL, 0);
772 strm->adler = crc32(strm->adler, s->pending_buf + beg,
783 strm->adler = crc32(strm->adler, s->pending_buf + beg,
801 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
/external/chromium_org/sdch/open-vcdiff/src/zlib/
Dadler32.c15 #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);
[all …]
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_adler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
66 uLong adler, in adler32() argument
74 sum2 = (adler >> 16) & 0xffff; in adler32()
75 adler &= 0xffff; in adler32()
79 adler += buf[0]; in adler32()
80 if (adler >= BASE) in adler32()
81 adler -= BASE; in adler32()
82 sum2 += adler; in adler32()
85 return adler | (sum2 << 16); in adler32()
95 adler += *buf++; in adler32()
[all …]
Dfx_zlib_deflate.c342 strm->adler = adler32(strm->adler, dictionary, dictLength); in deflateSetDictionary()
413 strm->adler = in deflateResetKeep()
692 strm->adler = crc32(0L, Z_NULL, 0); in deflate()
728 strm->adler = crc32(strm->adler, s->pending_buf, in deflate()
757 putShortMSB(s, (uInt)(strm->adler >> 16)); in deflate()
758 putShortMSB(s, (uInt)(strm->adler & 0xffff)); in deflate()
760 strm->adler = adler32(0L, Z_NULL, 0); in deflate()
771 strm->adler = crc32(strm->adler, s->pending_buf + beg, in deflate()
782 strm->adler = crc32(strm->adler, s->pending_buf + beg, in deflate()
800 strm->adler = crc32(strm->adler, s->pending_buf + beg, in deflate()
[all …]
/external/chromium_org/third_party/zlib/
Dadler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
60 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
61 uLong adler; in adler32()
69 sum2 = (adler >> 16) & 0xffff;
70 adler &= 0xffff;
74 adler += buf[0];
75 if (adler >= BASE)
76 adler -= BASE;
77 sum2 += adler;
80 return adler | (sum2 << 16);
[all …]
Ddeflate.c332 strm->adler = adler32(strm->adler, dictionary, dictLength);
381 strm->adler =
616 strm->adler = crc32(0L, Z_NULL, 0);
652 strm->adler = crc32(strm->adler, s->pending_buf,
681 putShortMSB(s, (uInt)(strm->adler >> 16));
682 putShortMSB(s, (uInt)(strm->adler & 0xffff));
684 strm->adler = adler32(0L, Z_NULL, 0);
695 strm->adler = crc32(strm->adler, s->pending_buf + beg,
706 strm->adler = crc32(strm->adler, s->pending_buf + beg,
724 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
Dgzread.c198 strm->adler = crc32(0L, Z_NULL, 0);
273 strm->adler = crc32(strm->adler, state->next, state->have);
281 if (crc != strm->adler) {
/external/zlib/src/contrib/dotzlib/DotZLib/
DUnitTests.cs121 AdlerChecksum adler = new AdlerChecksum(); in Adler_Null()
122 Assert.AreEqual(0, adler.Value); in Adler_Null()
124 adler = new AdlerChecksum(1); in Adler_Null()
125 Assert.AreEqual( 1, adler.Value ); in Adler_Null()
127 adler = new AdlerChecksum(556); in Adler_Null()
128 Assert.AreEqual( 556, adler.Value ); in Adler_Null()
134 AdlerChecksum adler = new AdlerChecksum(1); in Adler_Data()
136 adler.Update(data); in Adler_Data()
137 Assert.AreEqual( 0x5b001d, adler.Value ); in Adler_Data()
139 adler = new AdlerChecksum(); in Adler_Data()
[all …]
DInflater.cs77 setChecksum( _ztream.adler ); in Add()
93 setChecksum( _ztream.adler ); in Finish()
DDeflater.cs79 setChecksum( _ztream.adler ); in Add()
95 setChecksum( _ztream.adler ); in Finish()
DChecksumImpl.cs160 private static extern uint adler32(uint adler, int data, uint length); in adler32() argument
DDotZLib.cs49 public uint adler; field
/external/valgrind/main/auxprogs/
Dvalgrind-di-server.c229 UInt adler32( UInt adler, const UChar* buf, UInt len ) in adler32() argument
236 # define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} in adler32()
277 sum2 = (adler >> 16) & 0xffff; in adler32()
278 adler &= 0xffff; in adler32()
282 adler += buf[0]; in adler32()
283 if (adler >= BASE) in adler32()
284 adler -= BASE; in adler32()
285 sum2 += adler; in adler32()
288 return adler | (sum2 << 16); in adler32()
298 adler += *buf++; in adler32()
[all …]
/external/valgrind/main/coregrind/
Dm_libcbase.c964 UInt VG_(adler32)( UInt adler, const UChar* buf, UInt len ) in VG_()
971 # define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} in VG_()
1012 sum2 = (adler >> 16) & 0xffff; in VG_()
1013 adler &= 0xffff; in VG_()
1017 adler += buf[0]; in VG_()
1018 if (adler >= BASE) in VG_()
1019 adler -= BASE; in VG_()
1020 sum2 += adler; in VG_()
1023 return adler | (sum2 << 16); in VG_()
1033 adler += *buf++; in VG_()
[all …]
/external/freetype/src/gzip/
Dadler32.c22 uLong adler, in adler32() argument
26 unsigned long s1 = adler & 0xffff; in adler32()
27 unsigned long s2 = (adler >> 16) & 0xffff; in adler32()
Dinfutil.c46 z->adler = s->check = (*s->checkfn)(s->check, q, n); in inflate_flush()
72 z->adler = s->check = (*s->checkfn)(s->check, q, n); in inflate_flush()
Dzlib.h85 uLong adler; /* adler32 value of the uncompressed data */ member
775 ZEXTERN(uLong) adler32 OF((uLong adler, const Bytef *buf, uInt len));
/external/zlib/src/examples/
Dgzappend.c371 strm->adler = crc; in gzscan()
420 if (len) strm->adler = crc32(strm->adler, in, (unsigned)len); in gztack()
439 out[0] = (unsigned char)(strm->adler); in gztack()
440 out[1] = (unsigned char)(strm->adler >> 8); in gztack()
441 out[2] = (unsigned char)(strm->adler >> 16); in gztack()
442 out[3] = (unsigned char)(strm->adler >> 24); in gztack()
/external/valgrind/main/coregrind/m_debuginfo/
Dimage.c225 UInt adler = VG_(adler32)(0, NULL, 0); in do_transaction() local
230 adler = VG_(adler32)(adler, &wr_first8[4], 4); in do_transaction()
232 adler = VG_(adler32)(adler, req->data, req->n_data); in do_transaction()
233 write_UInt_le(&wr_first8[0], adler); in do_transaction()
261 adler = VG_(adler32)(0, NULL, 0); // initial value in do_transaction()
262 adler = VG_(adler32)(adler, &rd_first8[4], 4); in do_transaction()
264 adler = VG_(adler32)(adler, res->data, res->n_data); in do_transaction()
266 if (adler/*computed*/ != rd_adler/*expected*/) return NULL; in do_transaction()
/external/zlib/src/contrib/pascal/
Dzlibpas.pas45 adler: LongInt; (* adler32 value of the uncompressed data *)
154 function adler32(adler: LongInt; const buf: PChar; len: Integer): LongInt; in adler32()
/external/libpng/
Dpng.c2143 png_uint_32 adler, crc, length;
2150 # define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\
2151 { adler, crc, length, md5, broke, intent },
2204 png_const_bytep profile, uLong adler)
2248 if (adler == 0)
2250 adler = adler32(0, NULL, 0);
2251 adler = adler32(adler, profile, length);
2254 if (adler == png_sRGB_checks[i].adler)
2319 png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
2324 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler))

123