/external/e2fsprogs/lib/ext2fs/ |
D | crc32c.c | 77 crc32_body(uint32_t crc, unsigned char const *buf, size_t len, in crc32_body() argument 81 # define DO_CRC(x) (crc = t0[(crc ^ (x)) & 255] ^ (crc >> 8)) in crc32_body() 87 # define DO_CRC(x) (crc = t0[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)) in crc32_body() 116 q = crc ^ *++b; /* use pre increment for speed */ in crc32_body() 118 crc = DO_CRC4; in crc32_body() 120 crc = DO_CRC8; in crc32_body() 122 crc ^= DO_CRC4; in crc32_body() 133 return crc; in crc32_body() 147 static inline uint32_t crc32_le_generic(uint32_t crc, unsigned char const *p, in crc32_le_generic() argument 154 crc ^= *p++; in crc32_le_generic() [all …]
|
D | gen_crc32ctable.c | 36 uint32_t crc = 1; in crc32cinit_le() local 41 crc = (crc >> 1) ^ ((crc & 1) ? CRC32C_POLY_LE : 0); in crc32cinit_le() 43 crc32ctable_le[0][i + j] = crc ^ crc32ctable_le[0][j]; in crc32cinit_le() 46 crc = crc32ctable_le[0][i]; in crc32cinit_le() 48 crc = crc32ctable_le[0][crc & 0xff] ^ (crc >> 8); in crc32cinit_le() 49 crc32ctable_le[j][i] = crc; in crc32cinit_le() 60 uint32_t crc = 0x80000000; in crc32init_be() local 65 crc = (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0); in crc32init_be() 67 crc32table_be[0][i + j] = crc ^ crc32table_be[0][j]; in crc32init_be() 70 crc = crc32table_be[0][i]; in crc32init_be() [all …]
|
D | csum.c | 64 __u32 crc; in ext2fs_mmp_csum_set() local 69 crc = ext2fs_mmp_csum(fs, mmp); in ext2fs_mmp_csum_set() 70 mmp->mmp_checksum = ext2fs_cpu_to_le32(crc); in ext2fs_mmp_csum_set() 113 __u32 flag, crc; in ext2fs_superblock_csum_set() local 123 crc = ext2fs_superblock_csum(fs, sb); in ext2fs_superblock_csum_set() 124 sb->s_checksum = ext2fs_cpu_to_le32(crc); in ext2fs_superblock_csum_set() 133 __u32 *crc) in ext2fs_ext_attr_block_csum() argument 140 *crc = ext2fs_crc32c_le(fs->csum_seed, (unsigned char *)&block, in ext2fs_ext_attr_block_csum() 142 *crc = ext2fs_crc32c_le(*crc, (unsigned char *)buf, fs->blocksize); in ext2fs_ext_attr_block_csum() 170 __u32 crc; in ext2fs_ext_attr_block_csum_set() local [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | hash.c | 76 uint32_t crc; in av1_crc32c_calculator_init() local 79 crc = n; in av1_crc32c_calculator_init() 80 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 81 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 82 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 83 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 84 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 85 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 86 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() 87 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1; in av1_crc32c_calculator_init() [all …]
|
/external/flac/src/libFLAC/ |
D | crc.c | 348 FLAC__uint16 polynomial, crc; 352 crc = i << 8; 355 crc = (crc << 1) ^ (crc & (1 << 15) ? polynomial : 0); 357 FLAC__crc16_table[0][i] = crc; 368 FLAC__uint8 crc = 0; in FLAC__crc8() local 371 crc = FLAC__crc8_table[crc ^ *data++]; in FLAC__crc8() 373 return crc; in FLAC__crc8() 378 FLAC__uint16 crc = 0; in FLAC__crc16() local 381 crc ^= data[0] << 8 | data[1]; in FLAC__crc16() 383 crc = FLAC__crc16_table[7][crc >> 8] ^ FLAC__crc16_table[6][crc & 0xFF] ^ in FLAC__crc16() [all …]
|
/external/aac/libFDK/src/ |
D | FDK_crc.cpp | 339 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bits() local 344 tmp ^= ((crc & crcMask) ? 1 : 0); in calcCrc_Bits() 346 crc <<= 1; in calcCrc_Bits() 347 crc ^= tmp; in calcCrc_Bits() 351 USHORT tmp = (crc & crcMask) ? crcPoly : 0; // process single bit in calcCrc_Bits() 352 crc <<= 1; in calcCrc_Bits() 353 crc ^= tmp; in calcCrc_Bits() 356 *pCrc = crc; /* update crc value */ in calcCrc_Bits() 379 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bytes() local 386 crc = in calcCrc_Bytes() [all …]
|
/external/gptfdisk/ |
D | crc32.cc | 34 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-project/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-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 …]
|
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 …]
|
/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/usrsctp/usrsctplib/netinet/ |
D | sctp_crc32.c | 548 sctp_crc32c_sb8_64_bit(uint32_t crc, in sctp_crc32c_sb8_64_bit() argument 562 crc = sctp_crc_tableil8_o32[(crc ^ *p_buf++) & 0x000000FF] ^ in sctp_crc32c_sb8_64_bit() 563 (crc >> 8); in sctp_crc32c_sb8_64_bit() 566 crc ^= *p_buf++; in sctp_crc32c_sb8_64_bit() 567 crc ^= (*p_buf++) << 8; in sctp_crc32c_sb8_64_bit() 568 crc ^= (*p_buf++) << 16; in sctp_crc32c_sb8_64_bit() 569 crc ^= (*p_buf++) << 24; in sctp_crc32c_sb8_64_bit() 571 crc ^= *(const uint32_t *) p_buf; in sctp_crc32c_sb8_64_bit() 574 term1 = sctp_crc_tableil8_o88[crc & 0x000000FF] ^ in sctp_crc32c_sb8_64_bit() 575 sctp_crc_tableil8_o80[(crc >> 8) & 0x000000FF]; in sctp_crc32c_sb8_64_bit() [all …]
|
/external/toybox/toys/posix/ |
D | cksum.c | 42 static unsigned cksum_be(unsigned crc, unsigned char c) 44 return (crc<<8)^TT.crc_table[(crc>>24)^c]; 47 static unsigned cksum_le(unsigned crc, unsigned char c) in cksum_le() argument 49 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8); in cksum_le() 54 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; in do_cksum() local 56 unsigned (*cksum)(unsigned crc, unsigned char c); in do_cksum() 68 for (i=0; i<len; i++) crc=cksum(crc, toybuf[i]); in do_cksum() 76 crc = cksum(crc, llen); in do_cksum() 82 (toys.optflags & FLAG_I) ? crc : ~crc); in do_cksum()
|
/external/igt-gpu-tools/tests/vc4_ci/ |
D | vc4-chamelium.testlist | 1 igt@kms_chamelium@hdmi-crc-abgr8888 2 igt@kms_chamelium@hdmi-crc-argb1555 3 igt@kms_chamelium@hdmi-crc-argb8888 4 igt@kms_chamelium@hdmi-crc-bgr565 5 igt@kms_chamelium@hdmi-crc-bgr888 6 igt@kms_chamelium@hdmi-crc-fast 7 igt@kms_chamelium@hdmi-crc-multiple 8 igt@kms_chamelium@hdmi-crc-rgb565 9 igt@kms_chamelium@hdmi-crc-rgb888 10 igt@kms_chamelium@hdmi-crc-single [all …]
|
D | vc4-chamelium-fast.testlist | 1 igt@kms_chamelium@hdmi-crc-abgr8888 2 igt@kms_chamelium@hdmi-crc-argb1555 3 igt@kms_chamelium@hdmi-crc-argb8888 4 igt@kms_chamelium@hdmi-crc-bgr565 5 igt@kms_chamelium@hdmi-crc-bgr888 6 igt@kms_chamelium@hdmi-crc-fast 7 igt@kms_chamelium@hdmi-crc-rgb565 8 igt@kms_chamelium@hdmi-crc-rgb888 9 igt@kms_chamelium@hdmi-crc-xbgr8888 10 igt@kms_chamelium@hdmi-crc-xrgb1555 [all …]
|
/external/libaom/libaom/av1/encoder/x86/ |
D | hash_sse42.c | 19 #define CALC_CRC(op, crc, type, buf, len) \ argument 21 (crc) = op((crc), *(type *)(buf)); \ 35 uint32_t crc = 0xFFFFFFFF; in av1_get_crc32c_value_sse4_2() local 39 crc = _mm_crc32_u8(crc, *buf); in av1_get_crc32c_value_sse4_2() 43 uint64_t crc64 = crc; in av1_get_crc32c_value_sse4_2() 45 crc = (uint32_t)crc64; in av1_get_crc32c_value_sse4_2() 47 CALC_CRC(_mm_crc32_u32, crc, uint32_t, buf, len); in av1_get_crc32c_value_sse4_2() 48 CALC_CRC(_mm_crc32_u16, crc, uint16_t, buf, len); in av1_get_crc32c_value_sse4_2() 49 CALC_CRC(_mm_crc32_u8, crc, uint8_t, buf, len); in av1_get_crc32c_value_sse4_2() 50 return (crc ^= 0xFFFFFFFF); in av1_get_crc32c_value_sse4_2()
|
/external/rust/crates/crc32fast/src/ |
D | baseline.rs | 34 let mut crc = !prev; in update_fast_16() localVariable 38 crc = CRC32_TABLE[0x0][buf[0xf] as usize] in update_fast_16() 50 ^ CRC32_TABLE[0xc][buf[0x3] as usize ^ ((crc >> 0x18) & 0xFF) as usize] in update_fast_16() 51 ^ CRC32_TABLE[0xd][buf[0x2] as usize ^ ((crc >> 0x10) & 0xFF) as usize] in update_fast_16() 52 ^ CRC32_TABLE[0xe][buf[0x1] as usize ^ ((crc >> 0x08) & 0xFF) as usize] in update_fast_16() 53 ^ CRC32_TABLE[0xf][buf[0x0] as usize ^ ((crc >> 0x00) & 0xFF) as usize]; in update_fast_16() 58 update_slow(!crc, buf) in update_fast_16() 62 let mut crc = !prev; in update_slow() localVariable 65 crc = CRC32_TABLE[0][((crc as u8) ^ byte) as usize] ^ (crc >> 8); in update_slow() 68 !crc in update_slow() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/ |
D | CalculateCRC32.java | 38 int crc; in buildCRCTable() local 42 crc = i; in buildCRCTable() 44 if ((crc & 1) == 1) { in buildCRCTable() 45 crc = (crc >>> 1) ^ CRC32_POLYNOMIAL; in buildCRCTable() 47 crc >>>= 1; in buildCRCTable() 50 CRCTable[i] = crc; in buildCRCTable() 62 public static int computeCRC32(String buffer, int crc){ in computeCRC32() argument 63 return computeCRC32(buffer.getBytes(), crc); in computeCRC32() 66 public static int computeCRC32(byte buffer[], int crc) { in computeCRC32() argument 67 return computeCRC32(buffer, 0, buffer.length, crc); in computeCRC32()
|
/external/igt-gpu-tools/lib/ |
D | igt_debugfs.c | 381 if (a->crc[i] != b->crc[i]) { in igt_find_crc_mismatch() 424 index, a->crc[index], b->crc[index]); in igt_assert_crc_equal() 446 a->crc[index], b->crc[index]); in igt_check_crc_equal() 463 char *igt_crc_to_string_extended(igt_crc_t *crc, char delimiter, int crc_size) in igt_crc_to_string_extended() argument 468 char *buf = malloc((field_width+1) * crc->n_words); in igt_crc_to_string_extended() 473 for (i = 0; i < crc->n_words - 1; i++) in igt_crc_to_string_extended() 475 crc->crc[i], delimiter); in igt_crc_to_string_extended() 477 sprintf(buf + len, "%0*x", field_width, crc->crc[i]); in igt_crc_to_string_extended() 491 char *igt_crc_to_string(igt_crc_t *crc) in igt_crc_to_string() argument 493 return igt_crc_to_string_extended(crc, ' ', 4); in igt_crc_to_string() [all …]
|
/external/libtextclassifier/native/lang_id/common/flatbuffers/ |
D | model-utils.cc | 147 void UpdateCrc(mobile::Crc32 *crc, const flatbuffers::Vector<T> *s, in UpdateCrc() argument 149 crc->Update("|"); in UpdateCrc() 150 crc->Update(info.data(), info.size()); in UpdateCrc() 151 crc->Update(":"); in UpdateCrc() 153 crc->Update("empty"); in UpdateCrc() 155 crc->Update(reinterpret_cast<const char *>(s->data()), in UpdateCrc() 171 mobile::Crc32 crc; in ComputeCrc2Checksum() local 173 return crc.Get(); in ComputeCrc2Checksum() 175 crc.Update("|Parameters:"); in ComputeCrc2Checksum() 180 UpdateCrc(&crc, p->name(), "name"); in ComputeCrc2Checksum() [all …]
|
/external/flac/src/test_libFLAC/ |
D | bitreader.c | 75 FLAC__uint16 crc,expected_crcs[4] = { 0x5e4c, 0x7f6b, 0x2272, 0x42bf }; in test_bitreader() local 215 crc = FLAC__bitreader_get_read_crc16(br); in test_bitreader() 216 if(crc != expected_crcs[0]) { in test_bitreader() 217 printf("FAILED reported CRC 0x%04x does not match expected 0x%04x\n", crc, expected_crcs[0]); in test_bitreader() 227 crc = FLAC__bitreader_get_read_crc16(br); in test_bitreader() 228 if(crc != 0xFFFF) { in test_bitreader() 229 printf("FAILED reported CRC 0x%04x does not match expected 0xFFFF\n", crc); in test_bitreader() 234 crc = FLAC__bitreader_get_read_crc16(br); in test_bitreader() 235 if(crc != 0) { in test_bitreader() 236 printf("FAILED reported CRC 0x%04x does not match expected 0x0000\n", crc); in test_bitreader() [all …]
|
/external/llvm-project/lld/test/COFF/ |
D | pdb-publics-import.test | 29 CHECK-NEXT: SC[.text] | mod = 0, 0001:0000, size = 8, data crc = 0, reloc crc = 0 36 CHECK-NEXT: SC[???] | mod = 65535, 65535:0000, size = -1, data crc = 0, reloc crc = 0 42 CHECK-NEXT: SC[.text] | mod = 2, 0001:0032, size = 6, data crc = 0, reloc crc = 0 48 CHECK-NEXT: SC[???] | mod = 65535, 65535:0000, size = -1, data crc = 0, reloc crc = 0 151 CHECK-NEXT: SC[.text] | mod = 0, 0001:0000, size = 8, data crc = 0, reloc crc = 0 155 CHECK-NEXT: SC[.text] | mod = 3, 0001:0016, size = 6, data crc = 0, reloc crc = 0 158 CHECK-NEXT: SC[.text] | mod = 3, 0001:0032, size = 6, data crc = 0, reloc crc = 0 161 CHECK-NEXT: SC[.rdata] | mod = 3, 0002:0000, size = 28, data crc = 0, reloc crc = 0 163 CHECK-NEXT: SC[.rdata] | mod = 3, 0002:0028, size = 33, data crc = 0, reloc crc = 0 165 CHECK-NEXT: SC[.rdata] | mod = 3, 0002:0061, size = 20, data crc = 0, reloc crc = 0 [all …]
|
/external/rust/crates/flate2/src/ |
D | crc.rs | 23 crc: Crc, field 70 crc: Crc::new(), in new() 77 pub fn crc(&self) -> &Crc { in crc() method 78 &self.crc in crc() 98 self.crc.reset(); in reset() 105 self.crc.update(&into[..amt]); in read() 116 self.crc.update(&data[..amt]); in consume() 128 crc: Crc, field 133 pub fn crc(&self) -> &Crc { in crc() method 134 &self.crc in crc() [all …]
|