/external/chromium_org/rlz/lib/ |
H A D | crc8_unittest.cc | 17 // 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/leveldatabase/src/util/ |
H A D | crc32c.h | 26 // Return a masked representation of crc. 31 inline uint32_t Mask(uint32_t crc) { argument 33 return ((crc >> 15) | (crc << 17)) + kMaskDelta; 36 // Return the crc whose masked representation is masked_crc.
|
H A D | crc32c.cc | 286 uint32_t Extend(uint32_t crc, const char* buf, size_t size) { argument 289 uint32_t l = crc ^ 0xffffffffu;
|
/external/chromium_org/third_party/smhasher/src/ |
H A D | crc.cpp | 74 #define DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8); 84 uint32_t crc = seed ^ 0xffffffffL; local 97 crc ^= 0xffffffffL; 99 *(uint32_t*)out = crc;
|
/external/e2fsprogs/e2fsck/ |
H A D | 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 << [all...] |
/external/elfutils/0.153/lib/ |
H A D | 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/kernel-headers/original/uapi/linux/ |
H A D | bcm933xx_hcs.h | 21 __u32 crc; member in struct:bcm_hcs
|
/external/libnfc-nci/src/adaptation/ |
H A D | CrcChecksum.cpp | 76 register unsigned short crc = 0; local 82 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; 84 return(crc);
|
/external/lzma/xz-embedded/ |
H A D | xz_crc32.c | 49 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/srec/portable/src/ |
H A D | pcrc.c | 125 unsigned int pcrcUpdateData(unsigned int crc, const void *data, unsigned int size) argument 129 register unsigned int remainder = crc;
|
/external/tcpdump/ |
H A D | print-mobile.c | 76 u_short proto,crc; local 88 crc = EXTRACT_16BITS(&mob->hcheck); 108 (void)printf(" (bad checksum %d)",crc);
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | 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 56 uint32_t crc = 0x80000000; local [all...] |
/external/fio/crc/ |
H A D | crc32c-intel.c | 35 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/ |
H A D | ogg_helper.c | 98 FLAC__byte crc[4]; local 168 memcpy(crc, page->header+22, 4); 170 if(memcmp(crc, page->header+22, 4)) {
|
/external/lzma/CPP/7zip/Common/ |
H A D | InOutTempBuffer.cpp | 83 UInt32 crc = CRC_INIT_VAL;
local 88 crc = CrcUpdate(crc, _buf, _bufPos);
104 crc = CrcUpdate(crc, _buf, processed);
108 return (_crc == crc && size == _size) ? S_OK : E_FAIL;
|
/external/qemu/distrib/ext4_utils/src/ |
H A D | make_ext4fs_main.c | 69 int crc = 0; local 125 crc = 1; 204 sparse, crc, wipe, sehnd, verbose);
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
H A D | ChecksumImpl.cs | 109 private static extern uint crc32(uint crc, int data, uint length);
argument
|
/external/zopfli/src/zopfli/ |
H A D | gzip_container.c | 53 Updates a running crc with the bytes buf[0..len-1] and returns 54 the updated crc. The crc should be initialized to zero. 56 static unsigned long UpdateCRC(unsigned long crc, argument 58 unsigned long c = crc ^ 0xffffffffL;
|
/external/aac/libFDK/src/ |
H A D | FDK_crc.cpp | 98 * \brief This table defines precalculated lookup tables for crc polynom x^16 + x^15 + x^2 + x^0. 137 * \brief This table defines precalculated lookup tables for crc polynom x^16 + x^12 + x^5 + x^0. 209 /* crc polynom example: 308 * \brief Calculate crc bits. 310 * Calculate crc starting at current bitstream postion over nBits. 312 * \param pCrc Pointer to an outlying allocated crc info structure. 329 USHORT crc = *pCrc; /* get crc value */ local 334 tmp ^= ( (crc & crcMask) ? 1 : 0 ); 336 crc << 374 USHORT crc = *pCrc; /* get crc value */ local 409 USHORT crc = hCrcInfo->crcValue; local [all...] |
/external/aac/libSBRenc/src/ |
H A D | env_bit.cpp | 104 * @brief updates crc data register 107 * This function updates the crc register 112 USHORT *crc, 121 flag = ((*crc) & crcMask) ? (1) : (0) ; 124 (*crc)<<=1; 125 if(flag) (*crc) ^= crcPoly; 226 calculate crc 110 crcAdvance(USHORT crcPoly, USHORT crcMask, USHORT *crc, ULONG bValue, INT bBits ) argument
|
/external/bluetooth/bluedroid/embdrv/sbc/decoder/srce/ |
H A D | framing.c | 113 OI_UINT crc; local 116 crc = crc8_wide[idx >> 1]; 118 crc &= 0xff; 120 crc >>= 8; 123 return crc; 128 OI_UINT crc; local 131 crc = crc8_wide[idx>>1]; 133 crc &= 0xff; 135 crc >>= 8; 138 return (oldcrc << 4) ^ crc; 149 crc_iterate(OI_UINT8 crc, OI_UINT8 next) argument 158 crc_iterate(OI_UINT8 crc, OI_UINT8 next) argument 171 OI_UINT8 crc = 0x0f; local [all...] |
/external/chromium_org/media/formats/mp2t/ |
H A D | ts_section_psi.cc | 13 uint32 crc = 0xffffffffu; local 22 if ((data_msb_aligned ^ crc) & 0x80000000) { 23 crc <<= 1; 24 crc ^= kCrcPoly; 26 crc <<= 1; 34 return (crc == 0);
|
/external/chromium_org/net/disk_cache/simple/ |
H A D | simple_index_file.h | 169 uint32 crc; member in struct:disk_cache::SimpleIndexFile::PickleHeader
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
H A D | log_writer.cc | 85 // Compute the crc of the record type and the payload. 86 uint32_t crc = crc32c::Extend(type_crc_[t], ptr, n); local 87 crc = crc32c::Mask(crc); // Adjust for storage 88 EncodeFixed32(buf, crc);
|
/external/chromium_org/third_party/leveldatabase/src/table/ |
H A D | format.cc | 74 // Read the block contents as well as the type/crc footer. 89 // Check the crc of the type and the block contents 92 const uint32_t crc = crc32c::Unmask(DecodeFixed32(data + n + 1)); local 94 if (actual != crc) {
|