Searched refs:crc (Results 1 - 25 of 268) sorted by relevance

1234567891011

/external/fio/crc/
H A Dcrc16.h22 static inline unsigned short crc16_byte(unsigned short crc, argument
25 return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
H A Dcrc7.h6 static inline unsigned char crc7_byte(unsigned char crc, unsigned char data) argument
8 return crc7_syndrome_table[(crc << 1) ^ data];
H A Dcrc32c-intel.c35 static uint32_t crc32c_intel_le_hw_byte(uint32_t crc, unsigned char const *data, argument
41 :"=S"(crc)
42 :"0"(crc), "c"(*data)
47 return crc;
52 * crc using table.
63 uint32_t crc = ~0; local
68 :"=S"(crc)
69 :"0"(crc), "c"(*ptmp)
75 crc = crc32c_intel_le_hw_byte(crc, (unsigne
[all...]
/external/flac/libFLAC/include/private/
H A Dcrc.h42 #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)];
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) ^ (data)]))
56 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<
[all...]
/external/chromium_org/rlz/lib/
H A Dcrc32_wrapper.cc19 bool Crc32(const char* text, int* crc) { argument
20 if (!crc) {
21 ASSERT_STRING("Crc32: crc is NULL.");
25 *crc = 0;
30 *crc = crc32(*crc, reinterpret_cast<const unsigned char*>(text + i), 1);
H A Dcrc32.h13 bool Crc32(const char* text, int* crc);
H A Dcrc32_unittest.cc18 int crc; member in struct:__anon10527
28 EXPECT_EQ(kData[i].crc,
37 int crc; member in struct:__anon10528
47 int crc; local
49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc));
50 EXPECT_EQ(kData[i].crc, crc);
H A Dcrc8_unittest.cc17 // http://www.zorc.breitbandkatze.de/crc.html
31 unsigned char crc; local
36 crc = 0;
41 rlz_lib::Crc8::Generate(bytes, length, &crc);
42 EXPECT_TRUE(crc == data[i].external_crc);
43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
/external/chromium_org/third_party/lzma_sdk/
H A D7zCrc.h17 #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL)
18 #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
20 UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
H A DLzHash.h18 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; \
36 /* #define HASH_ZIP_CALC hashValue = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */
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[cu
[all...]
/external/lzma/C/
H A D7zCrc.h17 #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL)
18 #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
20 UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
H A DXzCrc64.h18 #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL)
19 #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
21 UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size);
H A DLzHash.h18 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; \
36 /* #define HASH_ZIP_CALC hashValue = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */
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[cu
[all...]
/external/chromium_org/courgette/
H A Dcrc.cc5 #include "courgette/crc.h"
20 uint32 crc; local
24 crc = crc32(0, buffer, size);
28 crc = CrcCalc(buffer, size);
31 return ~crc;
/external/lzma/xz-embedded/
H A Dxz_crc32.c49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) argument
51 crc = ~crc;
54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
58 return ~crc;
/external/qemu/distrib/libsparse/src/
H A Dsparse_crc32.h19 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/
H A Dcrc.h12 * crc.h
33 * - crc : checksum
42 uint32_t* crc);
/external/e2fsprogs/lib/ext2fs/
H A Dcrc16.h24 extern crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len);
H A Dgen_crc32ctable.c25 * crc is the crc of the byte i; other entries are filled in based on the
32 uint32_t crc = 1; local
37 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0);
39 crc32ctable_le[0][i + j] = crc ^ crc32ctable_le[0][j];
42 crc = crc32ctable_le[0][i];
44 crc = crc32ctable_le[0][crc
56 uint32_t crc = 0x80000000; local
[all...]
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
H A Dcrc.h12 * crc.h
33 * - crc : checksum
42 WebRtc_UWord32* crc);
/external/e2fsprogs/e2fsck/
H A Dcrc32.c58 * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for
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) argument
75 crc ^= *p++;
77 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0);
79 return crc;
83 __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len) argument
90 # define DO_CRC(x) crc
169 crc32_be(__u32 crc, unsigned char const *p, size_t len) argument
183 crc32_be(__u32 crc, unsigned char const *p, size_t len) argument
[all...]
H A Dgen_crc32table.c27 * crc is the crc of the byte i; other entries are filled in based on the
34 uint32_t crc = 1; local
39 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0);
41 crc32table_le[i + j] = crc ^ crc32table_le[j];
51 uint32_t crc = 0x80000000; local
56 crc = (crc <<
[all...]
/external/llvm/test/MC/ARM/
H A Ddirective-arch_extension-crc.s10 .arch_extension crc
11 @ CHECK-V7: error: architectural extension 'crc' is not allowed for the current base architecture
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 armv
[all...]
/external/chromium_org/third_party/ots/third_party/lzma_sdk/
H A DLzHash.h19 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; \
37 /* #define HASH_ZIP_CALC hashValue = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */
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[cu
[all...]
/external/valgrind/main/none/tests/amd64/
H A Dcrc32.c15 UInt i, crc = (b & 0xFF) ^ crcIn; local
17 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0);
18 return crc;
23 UInt i, crc = (w & 0xFFFF) ^ crcIn; local
25 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0);
26 return crc;
31 UInt i, crc = l ^ crcIn; local
39 UInt crc = do_s_crc32l(crcIn, (UInt)q); local
151 UInt crc = 0xFFFFFFFF; local
158 UInt crc = 0xFFFFFFFF; local
165 UInt crc = 0xFFFFFFFF; local
172 UInt crc = 0xFFFFFFFF; local
[all...]

Completed in 771 milliseconds

1234567891011