/external/zlib/src/ |
D | adler32.c | 18 #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 …]
|
D | deflate.c | 343 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 …]
|
D | inflate.c | 114 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/pdfium/third_party/zlib_v128/ |
D | adler32.c | 18 #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 …]
|
D | deflate.c | 342 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 …]
|
D | inflate.c | 114 strm->adler = state->wrap & 1; in inflateResetKeep() 682 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate() 810 strm->adler = state->check = crc32(0L, Z_NULL, 0); in inflate() 816 strm->adler = state->check = ZSWAP32(hold); in inflate() 824 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate() 1181 strm->adler = state->check = in inflate() 1244 strm->adler = state->check = in inflate()
|
/external/syslinux/com32/lib/zlib/ |
D | adler32.c | 18 #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 …]
|
D | deflate.c | 328 strm->adler = adler32(strm->adler, dictionary, dictLength); 375 strm->adler = 610 strm->adler = crc32(0L, Z_NULL, 0); 646 strm->adler = crc32(strm->adler, s->pending_buf, 675 putShortMSB(s, (uInt)(strm->adler >> 16)); 676 putShortMSB(s, (uInt)(strm->adler & 0xffff)); 678 strm->adler = adler32(0L, Z_NULL, 0); 689 strm->adler = crc32(strm->adler, s->pending_buf + beg, 700 strm->adler = crc32(strm->adler, s->pending_buf + beg, 718 strm->adler = crc32(strm->adler, s->pending_buf + beg, [all …]
|
D | inflate.c | 112 strm->adler = 1; /* to support ill-conceived Java test suite */ 666 strm->adler = state->check = adler32(0L, Z_NULL, 0); 794 strm->adler = state->check = crc32(0L, Z_NULL, 0); 800 strm->adler = state->check = REVERSE(hold); 808 strm->adler = state->check = adler32(0L, Z_NULL, 0); 1166 strm->adler = state->check = 1228 strm->adler = state->check =
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
D | UnitTests.cs | 121 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 …]
|
D | Inflater.cs | 77 setChecksum( _ztream.adler ); in Add() 93 setChecksum( _ztream.adler ); in Finish()
|
D | Deflater.cs | 79 setChecksum( _ztream.adler ); in Add() 95 setChecksum( _ztream.adler ); in Finish()
|
/external/valgrind/auxprogs/ |
D | valgrind-di-server.c | 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() [all …]
|
/external/valgrind/coregrind/ |
D | m_libcbase.c | 986 UInt VG_(adler32)( UInt adler, const UChar* buf, UInt len ) in VG_() 993 # define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} in VG_() 1034 sum2 = (adler >> 16) & 0xffff; in VG_() 1035 adler &= 0xffff; in VG_() 1039 adler += buf[0]; in VG_() 1040 if (adler >= BASE) in VG_() 1041 adler -= BASE; in VG_() 1042 sum2 += adler; in VG_() 1045 return adler | (sum2 << 16); in VG_() 1055 adler += *buf++; in VG_() [all …]
|
/external/freetype/src/gzip/ |
D | adler32.c | 22 uLong adler, in adler32() argument 26 unsigned long s1 = adler & 0xffff; in adler32() 27 unsigned long s2 = (adler >> 16) & 0xffff; in adler32()
|
D | infutil.c | 46 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()
|
D | zlib.h | 85 uLong adler; /* adler32 value of the uncompressed data */ member 775 ZEXTERN(uLong) adler32 OF((uLong adler, const Bytef *buf, uInt len));
|
/external/syslinux/lzo/src/ |
D | lzo_util.c | 109 lzo_adler32(lzo_uint32_t adler, const lzo_bytep buf, lzo_uint len) in lzo_adler32() argument 111 lzo_uint32_t s1 = adler & 0xffff; in lzo_adler32() 112 lzo_uint32_t s2 = (adler >> 16) & 0xffff; in lzo_adler32()
|
/external/zlib/src/examples/ |
D | gzappend.c | 371 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/coregrind/m_debuginfo/ |
D | image.c | 227 UInt adler = VG_(adler32)(0, NULL, 0); in do_transaction() local 232 adler = VG_(adler32)(adler, &wr_first8[4], 4); in do_transaction() 234 adler = VG_(adler32)(adler, req->data, req->n_data); in do_transaction() 235 write_UInt_le(&wr_first8[0], adler); in do_transaction() 263 adler = VG_(adler32)(0, NULL, 0); // initial value in do_transaction() 264 adler = VG_(adler32)(adler, &rd_first8[4], 4); in do_transaction() 266 adler = VG_(adler32)(adler, res->data, res->n_data); in do_transaction() 268 if (adler/*computed*/ != rd_adler/*expected*/) return NULL; in do_transaction()
|
/external/libxml2/ |
D | xzlib.c | 502 state->zstrm.adler = crc32(0L, Z_NULL, 0); in xz_head() 596 state->zstrm.adler = in xz_decomp() 597 crc32(state->zstrm.adler, state->next, state->have); in xz_decomp() 607 if (crc != state->zstrm.adler) { in xz_decomp()
|
/external/skia/third_party/libpng/ |
D | png.c | 2178 png_uint_32 adler, crc, length; 2185 # define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\ 2186 { adler, crc, length, md5, broke, intent }, 2239 png_const_bytep profile, uLong adler) 2291 if (adler == 0) 2293 adler = adler32(0, NULL, 0); 2294 adler = adler32(adler, profile, length); 2297 if (adler == png_sRGB_checks[i].adler) 2361 png_colorspacerp colorspace, png_const_bytep profile, uLong adler) 2367 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler) != 0)
|
/external/libpng/ |
D | png.c | 2212 png_uint_32 adler, crc, length; 2219 # define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\ 2220 { adler, crc, length, md5, broke, intent }, 2273 png_const_bytep profile, uLong adler) 2325 if (adler == 0) 2327 adler = adler32(0, NULL, 0); 2328 adler = adler32(adler, profile, length); 2331 if (adler == png_sRGB_checks[i].adler) 2394 png_colorspacerp colorspace, png_const_bytep profile, uLong adler) 2399 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler) != 0)
|
/external/pdfium/third_party/libpng16/ |
D | png.c | 2178 png_uint_32 adler, crc, length; 2185 # define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\ 2186 { adler, crc, length, md5, broke, intent }, 2239 png_const_bytep profile, uLong adler) 2291 if (adler == 0) 2293 adler = adler32(0, NULL, 0); 2294 adler = adler32(adler, profile, length); 2297 if (adler == png_sRGB_checks[i].adler) 2361 png_colorspacerp colorspace, png_const_bytep profile, uLong adler) 2367 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler) != 0)
|
/external/zlib/src/doc/ |
D | rfc1950.txt | 536 unsigned long adler = 1L; 539 adler = update_adler32(adler, buffer, length); 541 if (adler != original_adler) error(); 543 unsigned long update_adler32(unsigned long adler, 546 unsigned long s1 = adler & 0xffff; 547 unsigned long s2 = (adler >> 16) & 0xffff;
|