Home
last modified time | relevance | path

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

12

/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 =
691 strm->adler = crc32(0L, Z_NULL, 0);
727 strm->adler = crc32(strm->adler, s->pending_buf,
756 putShortMSB(s, (uInt)(strm->adler >> 16));
757 putShortMSB(s, (uInt)(strm->adler & 0xffff));
759 strm->adler = adler32(0L, Z_NULL, 0);
770 strm->adler = crc32(strm->adler, s->pending_buf + beg,
781 strm->adler = crc32(strm->adler, s->pending_buf + beg,
799 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
Dinflate.c113 strm->adler = state->wrap & 1;
681 strm->adler = state->check = adler32(0L, Z_NULL, 0);
809 strm->adler = state->check = crc32(0L, Z_NULL, 0);
815 strm->adler = state->check = ZSWAP32(hold);
823 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1180 strm->adler = state->check =
1243 strm->adler = state->check =
Dzlib.h102 uLong adler; /* adler32 value of the uncompressed data */ member
1552 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
/external/qemu/distrib/zlib-1.2.3/
Dadler32.c15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
57 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument
58 uLong adler; in adler32()
66 sum2 = (adler >> 16) & 0xffff;
67 adler &= 0xffff;
71 adler += buf[0];
72 if (adler >= BASE)
73 adler -= BASE;
74 sum2 += adler;
77 return adler | (sum2 << 16);
[all …]
Ddeflate.c332 strm->adler = adler32(strm->adler, dictionary, dictLength);
379 strm->adler =
580 strm->adler = crc32(0L, Z_NULL, 0);
616 strm->adler = crc32(strm->adler, s->pending_buf,
645 putShortMSB(s, (uInt)(strm->adler >> 16));
646 putShortMSB(s, (uInt)(strm->adler & 0xffff));
648 strm->adler = adler32(0L, Z_NULL, 0);
659 strm->adler = crc32(strm->adler, s->pending_buf + beg,
670 strm->adler = crc32(strm->adler, s->pending_buf + beg,
688 strm->adler = crc32(strm->adler, s->pending_buf + beg,
[all …]
Dinflate.c112 strm->adler = 1; /* to support ill-conceived Java test suite */
629 strm->adler = state->check = adler32(0L, Z_NULL, 0);
757 strm->adler = state->check = crc32(0L, Z_NULL, 0);
763 strm->adler = state->check = REVERSE(hold);
771 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1084 strm->adler = state->check =
1146 strm->adler = state->check =
Dzlib.h99 uLong adler; /* adler32 value of the uncompressed data */ member
1260 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
/external/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 …]
Dzlib.h99 uLong adler; /* adler32 value of the uncompressed data */ member
1263 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
/external/chromium/sdch/open-vcdiff/src/
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 …]
Dzlib.h99 uLong adler; /* adler32 value of the uncompressed data */ member
1263 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
/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 …]
DDeflater.cs79 setChecksum( _ztream.adler ); in Add()
95 setChecksum( _ztream.adler ); in Finish()
DInflater.cs77 setChecksum( _ztream.adler ); in Add()
93 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/zlib/src/examples/
Dgzappend.c369 strm->adler = crc; in gzscan()
418 if (len) strm->adler = crc32(strm->adler, in, (unsigned)len); in gztack()
437 out[0] = (unsigned char)(strm->adler); in gztack()
438 out[1] = (unsigned char)(strm->adler >> 8); in gztack()
439 out[2] = (unsigned char)(strm->adler >> 16); in gztack()
440 out[3] = (unsigned char)(strm->adler >> 24); in gztack()
/external/kernel-headers/original/linux/
Dzlib.h99 uLong adler; /* adler32 value of the uncompressed data */ member
/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()
Dexample.pas464 dictId := c_stream.adler;
511 if d_stream.adler <> dictId then
/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/ada/
Dzlib-thin.ads237 (adler : ULong;
380 adler : ULong; -- adler32 value of the uncompressed
/external/zlib/
Dzlib.h102 uLong adler; /* adler32 value of the uncompressed data */ member
1552 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
/external/zlib/src/test/
Dexample.c475 dictId = c_stream.adler;
520 if (d_stream.adler != dictId) {

12