Home
last modified time | relevance | path

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

12

/external/python/cpython2/Modules/zlib/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
63 uLong ZEXPORT adler32_z(adler, buf, len) in adler32_z() argument
64 uLong adler; in adler32_z()
72 sum2 = (adler >> 16) & 0xffff;
73 adler &= 0xffff;
77 adler += buf[0];
78 if (adler >= BASE)
79 adler -= BASE;
80 sum2 += adler;
83 return adler | (sum2 << 16);
[all …]
Ddeflate.c396 strm->adler = adler32(strm->adler, dictionary, dictLength);
492 strm->adler =
758 strm->adler = crc32(strm->adler, s->pending_buf + (beg), \
835 putShortMSB(s, (uInt)(strm->adler >> 16));
836 putShortMSB(s, (uInt)(strm->adler & 0xffff));
838 strm->adler = adler32(0L, Z_NULL, 0);
851 strm->adler = crc32(0L, Z_NULL, 0);
894 strm->adler = crc32(strm->adler, s->pending_buf,
979 put_byte(s, (Byte)(strm->adler & 0xff));
980 put_byte(s, (Byte)((strm->adler >> 8) & 0xff));
[all …]
Dzlib.h104 uLong adler; /* Adler-32 or CRC-32 value of the uncompressed data */ member
1688 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1707 ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf,
1742 ZEXTERN uLong ZEXPORT crc32_z OF((uLong adler, const Bytef *buf,
Dinflate.c129 strm->adler = state->wrap & 1;
701 strm->adler = state->check = adler32(0L, Z_NULL, 0);
833 strm->adler = state->check = crc32(0L, Z_NULL, 0);
839 strm->adler = state->check = ZSWAP32(hold);
847 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1204 strm->adler = state->check =
1267 strm->adler = state->check =
/external/zlib/src/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
63 uLong ZEXPORT adler32_z(adler, buf, len) in adler32_z() argument
64 uLong adler; in adler32_z()
72 sum2 = (adler >> 16) & 0xffff;
73 adler &= 0xffff;
77 adler += buf[0];
78 if (adler >= BASE)
79 adler -= BASE;
80 sum2 += adler;
83 return adler | (sum2 << 16);
[all …]
Ddeflate.c396 strm->adler = adler32(strm->adler, dictionary, dictLength);
492 strm->adler =
758 strm->adler = crc32(strm->adler, s->pending_buf + (beg), \
835 putShortMSB(s, (uInt)(strm->adler >> 16));
836 putShortMSB(s, (uInt)(strm->adler & 0xffff));
838 strm->adler = adler32(0L, Z_NULL, 0);
851 strm->adler = crc32(0L, Z_NULL, 0);
894 strm->adler = crc32(strm->adler, s->pending_buf,
979 put_byte(s, (Byte)(strm->adler & 0xff));
980 put_byte(s, (Byte)((strm->adler >> 8) & 0xff));
[all …]
Dzlib.h104 uLong adler; /* Adler-32 or CRC-32 value of the uncompressed data */ member
1689 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1708 ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf,
1743 ZEXTERN uLong ZEXPORT crc32_z OF((uLong adler, const Bytef *buf,
Dinflate.c129 strm->adler = state->wrap & 1;
701 strm->adler = state->check = adler32(0L, Z_NULL, 0);
833 strm->adler = state->check = crc32(0L, Z_NULL, 0);
839 strm->adler = state->check = ZSWAP32(hold);
847 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1204 strm->adler = state->check =
1267 strm->adler = state->check =
/external/u-boot/lib/zlib/
Dadler32.c15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
57 uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) in adler32() argument
63 sum2 = (adler >> 16) & 0xffff; in adler32()
64 adler &= 0xffff; in adler32()
68 adler += buf[0]; in adler32()
69 if (adler >= BASE) in adler32()
70 adler -= BASE; in adler32()
71 sum2 += adler; in adler32()
74 return adler | (sum2 << 16); in adler32()
84 adler += *buf++; in adler32()
[all …]
Ddeflate.c328 strm->adler = adler32(strm->adler, dictionary, dictLength);
375 strm->adler =
608 strm->adler = crc32(0L, Z_NULL, 0);
644 strm->adler = crc32(strm->adler, s->pending_buf,
673 putShortMSB(s, (uInt)(strm->adler >> 16));
674 putShortMSB(s, (uInt)(strm->adler & 0xffff));
676 strm->adler = adler32(0L, Z_NULL, 0);
687 strm->adler = crc32(strm->adler, s->pending_buf + beg,
698 strm->adler = crc32(strm->adler, s->pending_buf + beg,
716 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
Dinflate.c16 strm->adler = 1; /* to support ill-conceived Java test suite */ in inflateReset()
401 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
529 strm->adler = state->check = crc32(0L, Z_NULL, 0); in inflate()
535 strm->adler = state->check = REVERSE(hold); in inflate()
543 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
858 strm->adler = state->check = in inflate()
920 strm->adler = state->check = in inflate()
/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
/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/zlib/
Dzlib.h104 uLong adler; /* Adler-32 or CRC-32 value of the uncompressed data */ member
1689 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1708 ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf,
1743 ZEXTERN uLong ZEXPORT crc32_z OF((uLong adler, const Bytef *buf,
/external/libxml2/
Dxzlib.c502 state->zstrm.adler = crc32(0L, Z_NULL, 0); in xz_head()
605 state->zstrm.adler = in xz_decomp()
606 crc32(state->zstrm.adler, state->next, state->have); in xz_decomp()
616 if (crc != state->zstrm.adler) { in xz_decomp()
/external/pdfium/third_party/libpng16/
Dpng.c2212 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)
2395 png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
2401 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler) != 0)
/external/libpng/
Dpng.c2253 png_uint_32 adler, crc, length;
2260 # define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\
2261 { adler, crc, length, md5, broke, intent },
2314 png_const_bytep profile, uLong adler)
2366 if (adler == 0)
2368 adler = adler32(0, NULL, 0);
2369 adler = adler32(adler, profile, length);
2372 if (adler == png_sRGB_checks[i].adler)
2435 png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
2440 if (png_compare_ICC_profile_with_sRGB(png_ptr, profile, adler) != 0)
/external/zlib/src/doc/
Drfc1950.txt536 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;
/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()

12