/external/rust/crates/libz-sys/src/zlib-ng/ |
D | adler32.c | 12 Z_INTERNAL uint32_t adler32_c(uint32_t adler, const unsigned char *buf, size_t len) { argument 17 sum2 = (adler >> 16) & 0xffff; 18 adler &= 0xffff; 22 return adler32_len_1(adler, buf, sum2); 30 return adler32_len_16(adler, buf, len, sum2); 42 DO16(adler, sum2, buf); /* 16 sums unrolled */ 45 DO8(adler, sum2, buf, 0); /* 8 sums unrolled */ 49 adler %= BASE; 58 DO16(adler, sum2, buf); 63 DO8(adler, sum2, buf, 0); [all …]
|
D | adler32_p.h | 21 static inline uint32_t adler32_len_1(uint32_t adler, const unsigned char *buf, uint32_t sum2) { in adler32_len_1() argument 22 adler += buf[0]; in adler32_len_1() 23 if (adler >= BASE) in adler32_len_1() 24 adler -= BASE; in adler32_len_1() 25 sum2 += adler; in adler32_len_1() 28 return adler | (sum2 << 16); in adler32_len_1() 31 static inline uint32_t adler32_len_16(uint32_t adler, const unsigned char *buf, size_t len, uint32_… in adler32_len_16() argument 34 adler += *buf++; in adler32_len_16() 35 sum2 += adler; in adler32_len_16() 37 if (adler >= BASE) in adler32_len_16() [all …]
|
D | functable.c | 46 extern uint32_t adler32_c(uint32_t adler, const unsigned char *buf, size_t len); 48 extern uint32_t adler32_neon(uint32_t adler, const unsigned char *buf, size_t len); 51 extern uint32_t adler32_ssse3(uint32_t adler, const unsigned char *buf, size_t len); 54 extern uint32_t adler32_avx2(uint32_t adler, const unsigned char *buf, size_t len); 57 extern uint32_t adler32_power8(uint32_t adler, const unsigned char* buf, size_t len); 206 Z_INTERNAL uint32_t adler32_stub(uint32_t adler, const unsigned char *buf, size_t len) { in adler32_stub() argument 230 return functable.adler32(adler, buf, len); in adler32_stub()
|
D | crc32.c | 212 s->strm->adler = crc_fold_512to32(s); in crc_finalize() 224 s->strm->adler = PREFIX(crc32)(0L, NULL, 0); in crc_reset() 235 strm->adler = PREFIX(crc32)(strm->adler, dst, size); in copy_with_crc()
|
/external/zlib/ |
D | adler32.c | 16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 68 uLong ZEXPORT adler32_z(adler, buf, len) in adler32_z() argument 69 uLong adler; in adler32_z() 78 return adler32_simd_(adler, buf, len); 81 return adler32_simd_(adler, buf, len); 85 sum2 = (adler >> 16) & 0xffff; 86 adler &= 0xffff; 90 adler += buf[0]; 91 if (adler >= BASE) 92 adler -= BASE; [all …]
|
D | adler32_simd.c | 57 uint32_t adler, in adler32_simd_() argument 64 uint32_t s1 = adler & 0xffff; in adler32_simd_() 65 uint32_t s2 = adler >> 16; in adler32_simd_() 204 uint32_t adler, in adler32_simd_() argument 211 uint32_t s1 = adler & 0xffff; in adler32_simd_() 212 uint32_t s2 = adler >> 16; in adler32_simd_()
|
/external/angle/third_party/zlib/ |
D | adler32.c | 16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 68 uLong ZEXPORT adler32_z(adler, buf, len) in adler32_z() argument 69 uLong adler; in adler32_z() 78 return adler32_simd_(adler, buf, len); 81 return adler32_simd_(adler, buf, len); 85 sum2 = (adler >> 16) & 0xffff; 86 adler &= 0xffff; 90 adler += buf[0]; 91 if (adler >= BASE) 92 adler -= BASE; [all …]
|
D | adler32_simd.c | 57 uint32_t adler, in adler32_simd_() argument 64 uint32_t s1 = adler & 0xffff; in adler32_simd_() 65 uint32_t s2 = adler >> 16; in adler32_simd_() 204 uint32_t adler, in adler32_simd_() argument 211 uint32_t s1 = adler & 0xffff; in adler32_simd_() 212 uint32_t s2 = adler >> 16; in adler32_simd_()
|
/external/rust/crates/libz-sys/src/zlib/ |
D | adler32.c | 16 #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 …]
|
D | deflate.c | 396 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 …]
|
/external/python/cpython2/Modules/zlib/ |
D | adler32.c | 16 #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 …]
|
D | deflate.c | 396 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 …]
|
/external/libwebsockets/win32port/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 = 622 strm->adler = crc32(0L, Z_NULL, 0); 658 strm->adler = crc32(strm->adler, s->pending_buf, 687 putShortMSB(s, (uInt)(strm->adler >> 16)); 688 putShortMSB(s, (uInt)(strm->adler & 0xffff)); 690 strm->adler = adler32(0L, Z_NULL, 0); 701 strm->adler = crc32(strm->adler, s->pending_buf + beg, 712 strm->adler = crc32(strm->adler, s->pending_buf + beg, 730 strm->adler = crc32(strm->adler, s->pending_buf + beg, [all …]
|
/external/rust/crates/libz-sys/src/zlib-ng/arch/x86/ |
D | adler32_ssse3.c | 17 Z_INTERNAL uint32_t adler32_ssse3(uint32_t adler, const unsigned char *buf, size_t len) { in adler32_ssse3() argument 21 sum2 = (adler >> 16) & 0xffff; in adler32_ssse3() 22 adler &= 0xffff; in adler32_ssse3() 26 return adler32_len_1(adler, buf, sum2); in adler32_ssse3() 34 return adler32_len_16(adler, buf, len, sum2); in adler32_ssse3() 38 s1[0] = s1[1] = s1[2] = 0; s1[3] = adler; in adler32_ssse3() 97 …adler = (s1_unpack[0] % BASE) + (s1_unpack[1] % BASE) + (s1_unpack[2] % BASE) + (s1_unpack[3] % BA… in adler32_ssse3() 98 adler %= BASE; in adler32_ssse3() 99 s1[3] = adler; in adler32_ssse3() 108 adler += *buf++; in adler32_ssse3() [all …]
|
D | adler32_avx.c | 17 Z_INTERNAL uint32_t adler32_avx2(uint32_t adler, const unsigned char *buf, size_t len) { in adler32_avx2() argument 21 sum2 = (adler >> 16) & 0xffff; in adler32_avx2() 22 adler &= 0xffff; in adler32_avx2() 26 return adler32_len_1(adler, buf, sum2); in adler32_avx2() 34 return adler32_len_16(adler, buf, len, sum2); in adler32_avx2() 38 memset(s1, 0, sizeof(s1)); s1[7] = adler; // TODO: would a masked load be faster? in adler32_avx2() 94 …adler = (s1_unpack[0] % BASE) + (s1_unpack[1] % BASE) + (s1_unpack[2] % BASE) + (s1_unpack[3] % BA… in adler32_avx2() 96 adler %= BASE; in adler32_avx2() 97 s1[7] = adler; in adler32_avx2() 107 adler += *buf++; in adler32_avx2() [all …]
|
/external/rust/crates/libz-sys/src/zlib-ng/arch/arm/ |
D | adler32_neon.c | 32 uint16x8_t adler, sum2; in NEON_accum32() local 34 adler = vpaddlq_u8( d0); in NEON_accum32() 35 adler = vpadalq_u8(adler, d1); in NEON_accum32() 40 adacc = vpadalq_u16(adacc, adler); in NEON_accum32() 48 uint16x8_t adler, sum2; in NEON_accum32() local 50 adler = vpaddlq_u8(d0); in NEON_accum32() 53 adacc = vpadalq_u16(adacc, adler); in NEON_accum32() 74 uint32_t adler32_neon(uint32_t adler, const unsigned char *buf, size_t len) { in adler32_neon() argument 76 uint32_t sum2 = (adler >> 16) & 0xffff; in adler32_neon() 77 adler &= 0xffff; in adler32_neon() [all …]
|
/external/rust/crates/libz-sys/src/zlib/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/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()
|
/external/rust/crates/libz-sys/src/zlib/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/rust/crates/libz-sys/src/zlib-ng/arch/power/ |
D | adler32_power8.c | 56 uint32_t adler32_power8(uint32_t adler, const unsigned char* buf, size_t len) { in adler32_power8() argument 57 uint32_t s1 = adler & 0xffff; in adler32_power8() 58 uint32_t s2 = (adler >> 16) & 0xffff; in adler32_power8()
|
/external/rust/crates/libz-sys/src/zlib-ng/test/ |
D | adler32_test.c | 20 uint32_t adler; member 26 void test_adler32(uint32_t adler, const uint8_t *buf, uint32_t len, uint32_t chk, uint32_t line) { in test_adler32() argument 27 uint32_t res = PREFIX(adler32)(adler, buf, len); in test_adler32() 361 test_adler32(tests[i].adler, tests[i].buf, tests[i].len, tests[i].expect, tests[i].line); in main()
|