/external/guava/guava/src/com/google/common/hash/ |
Crc32cHashFunction.java | 42 // The CRC table, generated from the polynomial 0x11EDC6F41. 110 private int crc = 0; field in class:Crc32cHashFunction.Crc32cHasher 114 crc ^= 0xFFFFFFFF; 116 crc = ~((crc >>> 8) ^ CRC_TABLE[(crc ^ b) & 0xFF]); 121 return HashCode.fromInt(crc);
|
/external/libxaac/decoder/ |
ixheaacd_adts_crc_check.c | 154 UWORD16 crc = 65535; local 179 ixheaacd_adts_crc_fast_crc(ptr_adts_crc_info, &crc, bits); 187 ixheaacd_adts_crc_slow_crc(&crc, (UWORD8)(bits << (8 - bits_remaining)), 196 ixheaacd_adts_crc_fast_crc(ptr_adts_crc_info, &crc, 0); 199 ixheaacd_adts_crc_slow_crc(&crc, 0, bits_remaining); 205 if (crc != ptr_adts_crc_info->file_value) {
|
/external/lzma/C/ |
7zCrcOpt.c | 10 #define CRC_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
64 #define CRC_UPDATE_BYTE_2_BE(crc, b) (table[(((crc) >> 24) ^ (b))] ^ ((crc) << 8))
|
/hardware/nxp/nfc/halimpl/utils/ |
sparse_crc32.cc | 20 * do it this way? Because the calculated CRC must be transmitted in 22 * characters in order from LSB to MSB. By storing the CRC this way 33 * tions for all combinations of data and CRC register values 94 * A function that calculates the CRC-32 based on the table above is 102 uint32_t crc; local 104 crc = crc_in ^ ~0U; 105 while (size--) crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); 106 return crc ^ ~0U [all...] |
/system/core/libsparse/ |
sparse_crc32.c | 20 * do it this way? Because the calculated CRC must be transmitted in 22 * characters in order from LSB to MSB. By storing the CRC this way 33 * tions for all combinations of data and CRC register values 95 * A function that calculates the CRC-32 based on the table above is 104 uint32_t crc; local 106 crc = crc_in ^ ~0U; 108 crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); 109 return crc ^ ~0U [all...] |
/external/brotli/java/org/brotli/integration/ |
BundleChecker.java | 49 long crc; local 51 crc = BundleHelper.fingerprintStream(decompressedStream); 55 return crc; 78 throw new RuntimeException("CRC mismatch");
|
/external/brotli/java/org/brotli/wrapper/dec/ |
BrotliDecoderChannelTest.java | 81 long crc; local 83 crc = BundleHelper.fingerprintStream(Channels.newInputStream(decoder)); 87 assertEquals(BundleHelper.getExpectedFingerprint(entryName), crc); local
|
BrotliInputStreamTest.java | 79 long crc; local 81 crc = BundleHelper.fingerprintStream(decoder); 85 assertEquals(BundleHelper.getExpectedFingerprint(entryName), crc); local
|
/frameworks/multidex/library/src/androidx/multidex/ |
ZipUtil.java | 30 * Tools to build a quick partial crc of zip files. 108 CRC32 crc = new CRC32(); local 115 crc.update(buffer, 0, length); 123 return crc.getValue();
|
/external/aac/libSBRenc/src/ |
env_bit.cpp | 122 * @brief updates crc data register 125 * This function updates the crc register 128 static void crcAdvance(USHORT crcPoly, USHORT crcMask, USHORT *crc, 134 flag = ((*crc) & crcMask) ? (1) : (0); 137 (*crc) <<= 1; 138 if (flag) (*crc) ^= crcPoly; 146 * @brief Inittialisation of sbr bitstream, write of dummy header and CRC 168 if (sbrSyntaxFlags & SBR_SYNTAX_DRM_CRC) { /* Init and start CRC region */ 187 * Also the CRC will be calculated here. 204 * Calculate and write DRM CRC [all...] |
/external/deqp/framework/common/ |
tcuSeedBuilder.cpp | 25 * different results. Then values are passed through 32 bit crc. 41 deUint32 crc = oldCrc; local 46 crc = crc ^ current; 50 if (crc & 1u) 51 crc = (crc >> 1u) ^ generator; 53 crc = (crc >> 1u); 57 return crc; [all...] |
/external/syslinux/lzo/src/ |
lzo_crc.c | 1 /* lzo_crc.c -- crc checksum for the the LZO library 103 crc = table[((unsigned)crc ^ buf[i]) & 0xff] ^ (crc >> 8) 106 crc = table[(unsigned char)((unsigned char)crc ^ buf[i])] ^ (crc >> 8) 117 lzo_uint32_t crc; local 128 crc = (c & LZO_UINT32_C(0xffffffff)) ^ LZO_UINT32_C(0xffffffff); 142 return crc ^ LZO_UINT32_C(0xffffffff) [all...] |
/hardware/intel/common/wrs_omxil_core/utils/inc/ |
audio_parser.h | 47 int *version, int *layer, int *crc, int *bitrate,
|
/external/e2fsprogs/lib/ext2fs/ |
crc32c.c | 77 crc32_body(uint32_t crc, unsigned char const *buf, size_t len, 81 # define DO_CRC(x) (crc = t0[(crc ^ (x)) & 255] ^ (crc >> 8)) 87 # define DO_CRC(x) (crc = t0[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)) 116 q = crc ^ *++b; /* use pre increment for speed */ 118 crc = DO_CRC4; 120 crc = DO_CRC8 760 uint32_t crc; \/* random starting crc *\/ member in struct:crc_test [all...] |
crc16.c | 16 /** CRC table for the CRC-16. The poly is 0x8005 (x16 + x15 + x2 + 1) */ 53 * Compute the CRC-16 for the data buffer 55 * @param crc previous CRC value 58 * @return the updated CRC value 60 crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len) 69 * int for holding the CRC value to avoid this. 71 crc = (((crc >> 8) & 0xffU) [all...] |
/external/xz-embedded/linux/include/linux/ |
xz.h | 282 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc); 297 XZ_EXTERN uint64_t xz_crc64(const uint8_t *buf, size_t size, uint64_t crc);
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/aarch64/ |
crc32.d | 2 #as: -march=armv8-a+crc
|
/external/fio/crc/ |
crc32.c | 79 uint32_t crc = 0; local 82 crc = (crc << 8) ^ crctab[((crc >> 24) ^ *(cp++)) & 0xFF]; 84 return crc;
|
crc32c.c | 3 *@Article{castagnoli-crc, 15 * the iscsi-crc.c module of the linux-iscsi driver at 38 * This is the CRC-32C table 115 * crc using table. 120 uint32_t crc = ~0; local 123 crc = crc32c_table[(crc ^ *data++) & 0xFFL] ^ (crc >> 8); 125 return crc;
|
crc64.c | 97 unsigned long long crc = 0; local 100 crc = crctab64[(crc ^ *(buffer++)) & 0xff] ^ (crc >> 8); 102 return crc;
|
/external/mesa3d/src/util/ |
crc32.c | 115 uint32_t crc = 0xffffffff; local 118 crc = util_crc32_table[(crc ^ *p++) & 0xff] ^ (crc >> 8); 120 return crc;
|
/external/okhttp/okio/okio/src/main/java/okio/ |
GzipSource.java | 58 private final CRC32 crc = new CRC32(); field in class:GzipSource 90 // the end of a GzipSource you guarantee that the CRC has been checked. 109 // need to CRC the entire header. Then we read the magic ID1ID2 sequence. 158 // Confirm the optional header CRC. 163 checkEqual("FHCRC", source.readShortLe(), (short) crc.getValue()); 164 crc.reset(); 169 // Read the eight-byte trailer. Confirm the body's CRC and size. 173 checkEqual("CRC", source.readIntLe(), (int) crc.getValue()); 185 /** Updates the CRC with the given bytes. * [all...] |
/external/xz-embedded/linux/lib/xz/ |
xz_dec_test.c | 62 static uint32_t crc; variable 73 crc = 0xFFFFFFFF; 134 crc = crc32(crc, buffer_out, buffers.out_pos); 144 "CRC32 = 0x%08X\n", ~crc);
|
/toolchain/binutils/binutils-2.27/libiberty/ |
crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
/system/bt/embdrv/sbc/decoder/srce/ |
decoder-sbc.c | 243 uint8_t crc; local 292 * CRC-protected header, but don't require we have the whole frame. That way, 306 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); 307 if (crc != context->common.frameInfo.crc) { 308 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, 309 context->common.frameInfo.crc)); 355 uint8_t crc; local 370 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData) [all...] |