HomeSort by relevance Sort by last modified time
    Searched refs:crc (Results 1 - 25 of 211) sorted by null

1 2 3 4 5 6 7 8 9

  /external/fio/crc/
crc16.h 2 * crc16.h - CRC-16 routine
4 * Implements the standard CRC-16:
22 static inline unsigned short crc16_byte(unsigned short crc,
25 return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
crc7.h 6 static inline unsigned char crc7_byte(unsigned char crc, unsigned char data)
8 return crc7_syndrome_table[(crc << 1) ^ data];
crc32c-intel.c 35 static uint32_t crc32c_intel_le_hw_byte(uint32_t crc, unsigned char const *data,
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, (unsigned char *)ptmp
    [all...]
  /external/flac/libFLAC/include/private/
crc.h 37 /* 8 bit CRC generator, MSB shifted first
42 #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);
47 /* 16 bit CRC generator, MSB shifted first
53 #define FLAC__CRC16_UPDATE(data, crc) (((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)])
    [all...]
  /external/chromium_org/rlz/lib/
crc32_wrapper.cc 5 // A wrapper around ZLib's CRC functions to put them in the rlz_lib namespace
19 bool Crc32(const char* text, int* crc) {
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);
crc32.h 5 // A wrapper around ZLib's CRC function.
13 bool Crc32(const char* text, int* crc);
crc32_unittest.cc 18 int crc; member in struct:__anon15152
28 EXPECT_EQ(kData[i].crc,
37 int crc; member in struct:__anon15153
47 int crc; local
49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc));
50 EXPECT_EQ(kData[i].crc, crc);
crc8_unittest.cc 17 // http://www.zorc.breitbandkatze.de/crc.html
19 // CRC-8, Polynomial 0x07, Initial value 0x00, Final XOR value 0x55
20 // (direct, don't reverse data byes, don't reverse CRC before final XOR)
27 {"My CRC 8!", 0xDC, 0, 0x50},
31 unsigned char crc; local
36 crc = 0;
40 // Calculate CRC and compare against external value.
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)
    [all...]
  /external/chromium_org/third_party/lzma_sdk/
7zCrc.h 13 /* Call CrcGenerateTable one time before other CRC functions */
17 #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);
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; \
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[cur[0]] ^ cur[1];
    [all...]
  /external/lzma/C/
7zCrc.h 13 /* Call CrcGenerateTable one time before other CRC functions */
17 #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);
XzCrc64.h 18 #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);
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; \
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[cur[0]] ^ cur[1]; \
    [all...]
  /external/chromium_org/courgette/
crc.cc 5 #include "courgette/crc.h"
20 uint32 crc; local
23 // Calculate Crc by calling CRC method in zlib
24 crc = crc32(0, buffer, size);
26 // Calculate Crc by calling CRC method in LZMA SDK
28 crc = CrcCalc(buffer, size);
31 return ~crc;
  /external/lzma/xz-embedded/
xz_crc32.c 14 * accelerated CRC instruction are 3-5 times as fast as this version,
49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)
51 crc = ~crc;
54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
58 return ~crc;
  /external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/
crc.h 12 * crc.h
26 * This function returns a 32 bit CRC checksum of a bit stream
33 * - crc : checksum
42 uint32_t* crc);
  /external/e2fsprogs/lib/ext2fs/
crc16.h 2 * crc16.h - CRC-16 routine
4 * Implements the standard CRC-16:
20 * unsigned int for holding the CRC value to avoid this.
24 extern crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len);
gen_crc32ctable.c 25 * 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 & 0xff] ^ (crc >> 8)
56 uint32_t crc = 0x80000000; local
    [all...]
  /external/e2fsprogs/e2fsck/
crc32.c 58 * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for
60 * @p: pointer to buffer over which CRC is run
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)
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
    [all...]
gen_crc32table.c 27 * 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 << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0)
    [all...]
  /external/llvm/test/MC/ARM/
directive-arch_extension-crc.s 10 .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/
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; \
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[cur[0]] ^ cur[1];
    [all...]
  /external/e2fsprogs/tests/progs/
crcsum.c 30 uint32_t crc = ~0; local
31 uint32_t (*csum_func)(uint32_t crc, unsigned char const *p,
63 crc = csum_func(crc, buf, c);
65 printf("%u\n", crc);
  /external/elfutils/0.153/lib/
crc32_file.c 59 uint32_t crc = 0; local
84 *resp = crc32 (crc, mapped, st.st_size);
88 crc = crc32 (crc, mapped, mapsize);
101 crc = crc32 (crc, buffer, count);
104 *resp = crc;
  /external/chromium_org/third_party/leveldatabase/src/util/
crc32c_test.cc 11 class CRC { };
13 TEST(CRC, StandardResults) {
50 TEST(CRC, Values) {
54 TEST(CRC, Extend) {
59 TEST(CRC, Mask) {
60 uint32_t crc = Value("foo", 3); local
61 ASSERT_NE(crc, Mask(crc));
62 ASSERT_NE(crc, Mask(Mask(crc)));
    [all...]

Completed in 1165 milliseconds

1 2 3 4 5 6 7 8 9