/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | CRC32Test.java | 28 CRC32 crc = new CRC32(); in test_Constructor() local 29 assertEquals("Constructor of CRC32 failed", 0, crc.getValue()); in test_Constructor() 37 CRC32 crc = new CRC32(); in test_getValue() local 39 0, crc.getValue()); in test_getValue() 41 crc.reset(); in test_getValue() 42 crc.update(Integer.MAX_VALUE); in test_getValue() 47 4278190080L, crc.getValue()); in test_getValue() 49 crc.reset(); in test_getValue() 51 crc.update(byteEmpty); in test_getValue() 56 1295764014L, crc.getValue()); in test_getValue() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | crc32.c | 63 __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len); 71 __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len) in crc32_le() argument 75 crc ^= *p++; in crc32_le() 77 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32_le() 79 return crc; in crc32_le() 83 __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len) in crc32_le() argument 90 # define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8) in crc32_le() 92 # define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8) in crc32_le() 95 crc = __cpu_to_le32(crc); in crc32_le() 110 crc ^= *++b; in crc32_le() [all …]
|
D | gen_crc32table.c | 34 uint32_t crc = 1; in crc32init_le() local 39 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32init_le() 41 crc32table_le[i + j] = crc ^ crc32table_le[j]; in crc32init_le() 51 uint32_t crc = 0x80000000; in crc32init_be() local 56 crc = (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0); in crc32init_be() 58 crc32table_be[i + j] = crc ^ crc32table_be[j]; in crc32init_be()
|
/external/valgrind/main/none/tests/amd64/ |
D | crc32.c | 15 UInt i, crc = (b & 0xFF) ^ crcIn; in do_s_crc32b() local 17 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32b() 18 return crc; in do_s_crc32b() 23 UInt i, crc = (w & 0xFFFF) ^ crcIn; in do_s_crc32w() local 25 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32w() 26 return crc; in do_s_crc32w() 31 UInt i, crc = l ^ crcIn; in do_s_crc32l() local 33 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32l() 34 return crc; in do_s_crc32l() 39 UInt crc = do_s_crc32l(crcIn, (UInt)q); in do_s_crc32q() local [all …]
|
/external/flac/libFLAC/ |
D | crc.c | 113 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc) in FLAC__crc8_update() argument 115 *crc = FLAC__crc8_table[*crc ^ data]; in FLAC__crc8_update() 118 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc) in FLAC__crc8_update_block() argument 121 *crc = FLAC__crc8_table[*crc ^ *data++]; in FLAC__crc8_update_block() 126 FLAC__uint8 crc = 0; in FLAC__crc8() local 129 crc = FLAC__crc8_table[crc ^ *data++]; in FLAC__crc8() 131 return crc; in FLAC__crc8() 136 unsigned crc = 0; in FLAC__crc16() local 139 crc = ((crc<<8) ^ FLAC__crc16_table[(crc>>8) ^ *data++]) & 0xffff; in FLAC__crc16() 141 return crc; in FLAC__crc16()
|
/external/flac/libFLAC/include/private/ |
D | crc.h | 42 #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)]; argument 43 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc); 44 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc); 53 #define FLAC__CRC16_UPDATE(data, crc) (((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (dat… argument 56 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<8) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]) & 0xff…
|
/external/aac/libFDK/src/ |
D | FDK_crc.cpp | 329 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bits() local 334 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits() 336 crc <<= 1; in calcCrc_Bits() 337 crc ^= tmp; in calcCrc_Bits() 343 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits() 345 crc <<= 1; in calcCrc_Bits() 346 crc ^= tmp; in calcCrc_Bits() 349 *pCrc = crc; /* update crc value */ in calcCrc_Bits() 374 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bytes() local 378 crc = (crc<<8)^pCrcLookup[((crc>>8)^((UCHAR)FDKreadBits(hBs,8)))&0xFF]; in calcCrc_Bytes() [all …]
|
/external/lzma/C/ |
D | LzHash.h | 18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; } 29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \ 33 hashValue = (hash4Value ^ (p->crc[cur[4]] << 3)) & p->hashMask; \ 37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF; 41 hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1); 44 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 49 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ [all …]
|
D | 7zCrc.h | 17 #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) argument 18 #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) argument 20 UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
|
D | XzCrc64.h | 18 #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL) argument 19 #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) argument 21 UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size);
|
/external/chromium_org/third_party/lzma_sdk/ |
D | LzHash.h | 18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; } 29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \ 33 hashValue = (hash4Value ^ (p->crc[cur[4]] << 3)) & p->hashMask; \ 37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF; 41 hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1); 44 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 49 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ [all …]
|
D | 7zCrc.h | 17 #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) argument 18 #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) argument 20 UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
|
/external/chromium_org/third_party/ots/third_party/lzma_sdk/ |
D | LzHash.h | 19 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 24 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 27 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; } 30 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 33 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \ 34 hashValue = (hash4Value ^ (p->crc[cur[4]] << 3)) & p->hashMask; \ 38 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF; 42 hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1); 45 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 50 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ [all …]
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
D | crc32c_test.cc | 60 uint32_t crc = Value("foo", 3); in TEST() local 61 ASSERT_NE(crc, Mask(crc)); in TEST() 62 ASSERT_NE(crc, Mask(Mask(crc))); in TEST() 63 ASSERT_EQ(crc, Unmask(Mask(crc))); in TEST() 64 ASSERT_EQ(crc, Unmask(Unmask(Mask(Mask(crc))))); in TEST()
|
/external/elfutils/lib/ |
D | crc32.c | 111 crc32 (uint32_t crc, unsigned char *buf, size_t len) in crc32() argument 115 crc = ~crc; in crc32() 117 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8); in crc32() 118 return ~crc; in crc32()
|
D | crc32_file.c | 59 uint32_t crc = 0; in crc32_file() local 84 *resp = crc32 (crc, mapped, st.st_size); in crc32_file() 88 crc = crc32 (crc, mapped, mapsize); in crc32_file() 101 crc = crc32 (crc, buffer, count); in crc32_file() 104 *resp = crc; in crc32_file()
|
/external/flac/libFLAC/ia32/ |
D | bitreader_asm.nasm | 139 mov eax, [ebp + 24] ; ax <- br->read_crc (a.k.a. crc) 145 ;; eax (ax) crc a.k.a. br->read_crc 154 .c0b0: xor dl, ah ; dl <- (crc>>8)^(word>>24) 156 mov ecx, [ebx*4 + edi] ; cx <- FLAC__crc16_table[(crc>>8)^(word>>24)] 157 shl eax, 8 ; ax <- (crc<<8) 158 xor eax, ecx ; crc <- ax <- (crc<<8) ^ FLAC__crc16_table[(crc>>8)^(word>>24)] 159 .c0b1: xor dh, ah ; dh <- (crc>>8)^((word>>16)&0xff)) 161 mov ecx, [ebx*4 + edi] ; cx <- FLAC__crc16_table[(crc>>8)^((word>>16)&0xff))] 162 shl eax, 8 ; ax <- (crc<<8) 163 xor eax, ecx ; crc <- ax <- (crc<<8) ^ FLAC__crc16_table[(crc>>8)^((word>>16)&0xff))] [all …]
|
/external/chromium_org/rlz/lib/ |
D | crc32_unittest.cc | 18 int crc; in TEST() member 28 EXPECT_EQ(kData[i].crc, in TEST() 37 int crc; in TEST() member 47 int crc; in TEST() local 49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc)); in TEST() 50 EXPECT_EQ(kData[i].crc, crc); in TEST()
|
/external/openssh/ |
D | crc32.c | 99 u_int32_t i, crc; in ssh_crc32() local 101 crc = 0; in ssh_crc32() 103 crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); in ssh_crc32() 104 return crc; in ssh_crc32()
|
/external/chromium_org/third_party/smhasher/src/ |
D | crc.cpp | 74 #define DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8); 84 uint32_t crc = seed ^ 0xffffffffL; in crc32() local 97 crc ^= 0xffffffffL; in crc32() 99 *(uint32_t*)out = crc; in crc32()
|
/external/qemu/distrib/zlib-1.2.3/ |
D | crc32.c | 215 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 219 unsigned long ZEXPORT crc32(crc, buf, len) in crc32() argument 220 unsigned long crc; in crc32() 237 return crc32_little(crc, buf, len); 239 return crc32_big(crc, buf, len); 242 crc = crc ^ 0xffffffffUL; 250 return crc ^ 0xffffffffUL; 262 local unsigned long crc32_little(crc, buf, len) in crc32_little() argument 263 unsigned long crc; in crc32_little() 270 c = (u4)crc; [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | crc16.c | 59 crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len) in ext2fs_crc16() argument 70 crc = (((crc >> 8) & 0xffU) ^ in ext2fs_crc16() 71 crc16_table[(crc ^ *cp++) & 0xffU]) & 0x0000ffffU; in ext2fs_crc16() 72 return crc; in ext2fs_crc16()
|
/external/zlib/src/ |
D | crc32.c | 200 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 204 unsigned long ZEXPORT crc32(crc, buf, len) in crc32() argument 205 unsigned long crc; in crc32() 222 return crc32_little(crc, buf, len); 224 return crc32_big(crc, buf, len); 227 crc = crc ^ 0xffffffffUL; 235 return crc ^ 0xffffffffUL; 247 local unsigned long crc32_little(crc, buf, len) in crc32_little() argument 248 unsigned long crc; in crc32_little() 255 c = (z_crc_t)crc; [all …]
|
/external/chromium_org/third_party/zlib/ |
D | crc32.c | 217 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 221 unsigned long ZEXPORT crc32(crc, buf, len) in crc32() argument 222 unsigned long crc; in crc32() 239 return crc32_little(crc, buf, len); 241 return crc32_big(crc, buf, len); 244 crc = crc ^ 0xffffffffUL; 252 return crc ^ 0xffffffffUL; 264 local unsigned long crc32_little(crc, buf, len) in crc32_little() argument 265 unsigned long crc; in crc32_little() 272 c = (u4)crc; [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_hash.c | 115 uint32_t crc = 0xffffffff; in util_hash_crc32() local 118 crc = util_crc32_table[(crc ^ *p++) & 0xff] ^ (crc >> 8); in util_hash_crc32() 120 return crc; in util_hash_crc32()
|