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

1 2 3 4 5 6 7 8 91011>>

  /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...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
CRC32Test.java 28 CRC32 crc = new CRC32(); local
29 assertEquals("Constructor of CRC32 failed", 0, crc.getValue());
37 CRC32 crc = new CRC32(); local
39 0, crc.getValue());
41 crc.reset();
42 crc.update(Integer.MAX_VALUE);
43 // System.out.print("value of crc " + crc.getValue());
44 // Ran JDK and discovered that the value of the CRC should be
47 4278190080L, crc.getValue())
75 CRC32 crc = new CRC32(); local
93 CRC32 crc = new CRC32(); local
124 CRC32 crc = new CRC32(); local
148 CRC32 crc = new CRC32(); local
    [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:__anon14520
28 EXPECT_EQ(kData[i].crc,
37 int crc; member in struct:__anon14521
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);
  /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);
  /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;
  /frameworks/av/media/libstagefright/codecs/mp3dec/src/
pvmp3_crc.cpp 46 uint32 *crc, memory location holding calculated crc value
47 uint32 crc_enabled flag to enable/disable crc checking
56 uint32 length, number of element upon the crc will be calculated
57 uint32 *crc, memory location holding calculated crc value
125 uint32 *crc,
132 calculate_crc(bits, neededBits, crc);
143 uint32 *crc)
150 carry = *crc & 0x8000
    [all...]
pvmp3_decode_header.h 91 uint32 *crc);
  /libcore/luni/src/main/java/java/util/zip/
CRC32.java 28 private long crc = 0L; field in class:CRC32
38 return crc;
45 tbytes = crc = 0;
56 crc = updateByteImpl((byte) val, crc);
76 crc = updateImpl(buf, offset, byteCount, crc);
  /external/qemu/distrib/libsparse/src/
sparse_crc32.h 19 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
  /system/core/libsparse/
sparse_crc32.h 19 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/
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/webrtc/src/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 WebRtc_UWord32* crc);
  /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...]

Completed in 1160 milliseconds

1 2 3 4 5 6 7 8 91011>>