/external/e2fsprogs/lib/ext2fs/ |
D | crc32c.c | 75 static uint32_t crc32c_le_body(uint32_t crc, uint8_t const *buf, size_t len) in crc32c_le_body() argument 86 crc = (__force uint32_t) __cpu_to_le32(crc); in crc32c_le_body() 99 i0 = *p8++ ^ crc; in crc32c_le_body() 100 crc = t0_le[i0] ^ (crc >> 8); in crc32c_le_body() 102 i0 = *p8++ ^ (crc >> 24); in crc32c_le_body() 103 crc = t0_le[i0] ^ (crc << 8); in crc32c_le_body() 112 q = *++p32 ^ crc; in crc32c_le_body() 117 crc = t3_le[i3] ^ t2_le[i2] ^ t1_le[i1] ^ t0_le[i0]; in crc32c_le_body() 119 q = *++p32 ^ crc; in crc32c_le_body() 124 crc = t3_le[i3] ^ t2_le[i2] ^ t1_le[i1] ^ t0_le[i0]; in crc32c_le_body() [all …]
|
D | gen_crc32ctable.c | 32 uint32_t crc = 1; in crc32cinit_le() local 37 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32cinit_le() 39 crc32ctable_le[0][i + j] = crc ^ crc32ctable_le[0][j]; in crc32cinit_le() 42 crc = crc32ctable_le[0][i]; in crc32cinit_le() 44 crc = crc32ctable_le[0][crc & 0xff] ^ (crc >> 8); in crc32cinit_le() 45 crc32ctable_le[j][i] = crc; in crc32cinit_le() 56 uint32_t crc = 0x80000000; in crc32cinit_be() local 61 crc = (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0); in crc32cinit_be() 63 crc32ctable_be[0][i + j] = crc ^ crc32ctable_be[0][j]; in crc32cinit_be() 66 crc = crc32ctable_be[0][i]; in crc32cinit_be() [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/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 | 114 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc) in FLAC__crc8_update() argument 116 *crc = FLAC__crc8_table[*crc ^ data]; in FLAC__crc8_update() 119 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc) in FLAC__crc8_update_block() argument 122 *crc = FLAC__crc8_table[*crc ^ *data++]; in FLAC__crc8_update_block() 127 FLAC__uint8 crc = 0; in FLAC__crc8() local 130 crc = FLAC__crc8_table[crc ^ *data++]; in FLAC__crc8() 132 return crc; in FLAC__crc8() 137 unsigned crc = 0; in FLAC__crc16() local 140 crc = ((crc<<8) ^ FLAC__crc16_table[(crc>>8) ^ *data++]) & 0xffff; in FLAC__crc16() 142 return crc; in FLAC__crc16()
|
/external/gptfdisk/ |
D | crc32.cc | 34 register unsigned long crc; in chksum_crc32() local 37 crc = 0xFFFFFFFF; in chksum_crc32() 40 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_tab[(crc ^ *block++) & 0xFF]; in chksum_crc32() 42 return (crc ^ 0xFFFFFFFF); in chksum_crc32() 52 unsigned long crc, poly; in chksum_crc32gentab() local 58 crc = i; in chksum_crc32gentab() 61 if (crc & 1) in chksum_crc32gentab() 63 crc = (crc >> 1) ^ poly; in chksum_crc32gentab() 67 crc >>= 1; in chksum_crc32gentab() 70 crc_tab[i] = crc; in chksum_crc32gentab()
|
/external/llvm/test/MC/ARM/ |
D | directive-arch_extension-crc.s | 10 .arch_extension crc 12 @ CHECK-V7-NEXT: .arch_extension crc 15 .type crc,%function 16 crc: label 18 @ CHECK-V7: error: instruction requires: crc armv8 20 @ CHECK-V7: error: instruction requires: crc armv8 22 @ CHECK-V7: error: instruction requires: crc armv8 25 @ CHECK-V7: error: instruction requires: crc armv8 27 @ CHECK-V7: error: instruction requires: crc armv8 29 @ CHECK-V7: error: instruction requires: crc armv8 [all …]
|
D | crc32.s | 3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-pref… 11 @ CHECK-V7: error: instruction requires: crc armv8 12 @ CHECK-V7: error: instruction requires: crc armv8 13 @ CHECK-V7: error: instruction requires: crc armv8 14 @ CHECK-NOCRC: error: instruction requires: crc 15 @ CHECK-NOCRC: error: instruction requires: crc 16 @ CHECK-NOCRC: error: instruction requires: crc 25 @ CHECK-V7: error: instruction requires: crc armv8 26 @ CHECK-V7: error: instruction requires: crc armv8 27 @ CHECK-V7: error: instruction requires: crc armv8 [all …]
|
D | crc32-thumb.s | 3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-pref… 11 @ CHECK-V7: error: instruction requires: crc armv8 12 @ CHECK-V7: error: instruction requires: crc armv8 13 @ CHECK-V7: error: instruction requires: crc armv8 14 @ CHECK-NOCRC: error: instruction requires: crc 15 @ CHECK-NOCRC: error: instruction requires: crc 16 @ CHECK-NOCRC: error: instruction requires: crc 25 @ CHECK-V7: error: instruction requires: crc armv8 26 @ CHECK-V7: error: instruction requires: crc armv8 27 @ CHECK-V7: error: instruction requires: crc armv8 [all …]
|
/external/toybox/toys/posix/ |
D | cksum.c | 32 static unsigned cksum_be(unsigned crc, unsigned char c) 34 return (crc<<8)^TT.crc_table[(crc>>24)^c]; 37 static unsigned cksum_le(unsigned crc, unsigned char c) in cksum_le() argument 39 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8); in cksum_le() 44 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; in do_cksum() local 46 unsigned (*cksum)(unsigned crc, unsigned char c); in do_cksum() 59 for (i=0; i<len; i++) crc=cksum(crc, toybuf[i]); in do_cksum() 67 crc = cksum(crc, llen); in do_cksum() 73 (toys.optflags & FLAG_I) ? crc : ~crc); in do_cksum()
|
/external/flac/libFLAC/include/private/ |
D | crc.h | 43 #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)]; argument 44 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc); 45 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc); 54 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data… argument 57 #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/fio/crc/ |
D | crc32c-intel.c | 35 static uint32_t crc32c_intel_le_hw_byte(uint32_t crc, unsigned char const *data, in crc32c_intel_le_hw_byte() argument 41 :"=S"(crc) in crc32c_intel_le_hw_byte() 42 :"0"(crc), "c"(*data) in crc32c_intel_le_hw_byte() 47 return crc; in crc32c_intel_le_hw_byte() 63 uint32_t crc = ~0; in crc32c_intel() local 68 :"=S"(crc) in crc32c_intel() 69 :"0"(crc), "c"(*ptmp) in crc32c_intel() 75 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, in crc32c_intel() 78 return crc; in crc32c_intel()
|
/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/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/fio/ |
D | Android.mk | 38 crc_src_files := crc/crc7.c crc/crc16.c crc/crc32.c crc/crc64.c crc/crc32c.c crc/crc32c-intel.c \ 39 crc/sha1.c crc/sha256.c crc/sha512.c crc/md5.c crc/test.c crc/xxhash.c \ 40 crc/fnv.c crc/murmur3.c
|
/external/elfutils/src/lib/ |
D | crc32.c | 90 crc32 (uint32_t crc, unsigned char *buf, size_t len) in crc32() argument 94 crc = ~crc; in crc32() 96 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8); in crc32() 97 return ~crc; in crc32()
|
/external/libpng/contrib/tools/ |
D | png-fix-itxt.c | 44 unsigned long crc; in main() local 79 crc = crc32(0, Z_NULL, 0); in main() 88 crc = crc32(crc, buf+4, (uInt)length+4); in main() 93 if (((crc >> 24) & 0xff) == buf[length+8] && in main() 94 ((crc >> 16) & 0xff) == buf[length+9] && in main() 95 ((crc >> 8) & 0xff) == buf[length+10] && in main() 96 ((crc ) & 0xff) == buf[length+11]) in main() 108 crc = crc32(crc, buf+7+length, 1); in main()
|
/external/lzma/xz-embedded/ |
D | xz_crc32.c | 49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) in xz_crc32() argument 51 crc = ~crc; in xz_crc32() 54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8); in xz_crc32() 58 return ~crc; in xz_crc32()
|
/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/vboot_reference/firmware/lib/ |
D | crc8.c | 17 unsigned crc = 0; in Crc8() local 21 crc ^= (*data << 8); in Crc8() 23 if (crc & 0x8000) in Crc8() 24 crc ^= (0x1070 << 3); in Crc8() 25 crc <<= 1; in Crc8() 29 return (uint8_t)(crc >> 8); in Crc8()
|
/external/vboot_reference/firmware/2lib/ |
D | 2crc8.c | 12 unsigned crc = 0; in vb2_crc8() local 20 crc ^= (*data << 8); in vb2_crc8() 22 if (crc & 0x8000) in vb2_crc8() 23 crc ^= (0x1070 << 3); in vb2_crc8() 24 crc <<= 1; in vb2_crc8() 28 return (uint8_t)(crc >> 8); in vb2_crc8()
|