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

1 2 3 4 5 6 7 8 91011>>

  /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/apache-harmony/archive/src/test/java/org/apache/harmony/archive/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:__anon12961
28 EXPECT_EQ(kData[i].crc,
37 int crc; member in struct:__anon12962
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;
  /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);
pvmp3_get_side_info.h 92 uint32 *crc);
pvmp3_crc.h 86 uint32 *crc,
92 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);
  /system/core/libsparse/
sparse_crc32.h 19 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
  /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);
  /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...]
  /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/valgrind/main/none/tests/amd64/
crc32.c 15 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...]
  /external/elfutils/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;

Completed in 875 milliseconds

1 2 3 4 5 6 7 8 91011>>