/external/e2fsprogs/tests/progs/ |
H A D | 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/ |
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/chromium_org/third_party/leveldatabase/src/util/ |
H A D | crc32c_test.cc | 60 uint32_t crc = Value("foo", 3); local 61 ASSERT_NE(crc, Mask(crc)); 62 ASSERT_NE(crc, Mask(Mask(crc))); 63 ASSERT_EQ(crc, Unmask(Mask(crc))); 64 ASSERT_EQ(crc, Unmask(Unmask(Mask(Mask(crc)))));
|
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.
|
/external/libpng/contrib/libtests/ |
H A D | fakepng.c | 17 uLong crc; local 23 crc = crc32(0, Z_NULL, 0); 24 put_uLong(crc32(crc, chunk, length));
|
/external/llvm/test/MC/ARM/ |
H A D | crc32-thumb.s | 3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-NOCRC 11 @ CHECK-V7: error: instruction requires: crc armv8 12 @ CHECK-V7: error: instruction requires: crc armv8 13 @ CHECK-V7: error: instruction requires: crc armv8 14 @ CHECK-NOCRC: error: instruction requires: crc 15 @ CHECK-NOCRC: error: instruction requires: crc 16 @ CHECK-NOCRC: error: instruction requires: crc 25 @ CHECK-V7: error: instruction requires: crc armv8 26 @ CHECK-V7: error: instruction requires: crc armv8 27 @ CHECK-V7: error: instruction requires: crc armv [all...] |
H A D | crc32.s | 3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-NOCRC 11 @ CHECK-V7: error: instruction requires: crc armv8 12 @ CHECK-V7: error: instruction requires: crc armv8 13 @ CHECK-V7: error: instruction requires: crc armv8 14 @ CHECK-NOCRC: error: instruction requires: crc 15 @ CHECK-NOCRC: error: instruction requires: crc 16 @ CHECK-NOCRC: error: instruction requires: crc 25 @ CHECK-V7: error: instruction requires: crc armv8 26 @ CHECK-V7: error: instruction requires: crc armv8 27 @ CHECK-V7: error: instruction requires: crc armv [all...] |
/external/srec/portable/include/ |
H A D | pcrc.h | 62 * @param crc The initial crc value. 63 * @param data datum to append to the crc 65 * @return the new crc value. 67 PORTABLE_API unsigned int pcrcUpdateData(unsigned int crc,
|
/external/lzma/xz-embedded/ |
H A D | xz_stream.h | 16 # define xz_crc32(buf, size, crc) \ 17 (~crc32_le(~(uint32_t)(crc), buf, size))
|
/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/qemu/distrib/libsparse/include/sparse/ |
H A D | sparse.h | 150 * @crc - append a crc chunk 156 * sparse files. If crc is true, the crc of the expanded data will be 157 * calculated and appended in a crc chunk. 162 bool crc); 169 * @crc - append a crc chunk 176 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc); 183 * @crc [all...] |
/external/libpng/contrib/tools/ |
H A D | png-fix-itxt.c | 44 unsigned long crc; local 79 crc = crc32(0, Z_NULL, 0); 88 crc = crc32(crc, buf+4, (uInt)length+4); 93 if (((crc >> 24) & 0xff) == buf[length+8] && 94 ((crc >> 16) & 0xff) == buf[length+9] && 95 ((crc >> 8) & 0xff) == buf[length+10] && 96 ((crc ) & 0xff) == buf[length+11]) 108 crc = crc32(crc, bu [all...] |
/external/chromium_org/third_party/lzma_sdk/ |
H A D | 7zCrcOpt.c | 8 #define CRC_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
|
/external/jsilver/src/com/google/clearsilver/jsilver/functions/string/ |
H A D | CrcFunction.java | 40 Checksum crc = new CRC32(); 47 crc.update(b, 0, b.length); 50 return literalConstant((int) crc.getValue(), args[0]);
|
/external/lzma/C/ |
H A D | 7zCrcOpt.c | 8 #define CRC_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
|
/external/lzma/CS/7zip/Common/ |
H A D | CRC.cs | 44 CRC crc = new CRC();
45 // crc.Init();
46 crc.Update(data, offset, size);
47 return crc.GetDigest();
|
/external/fio/ |
H A D | Android.mk | 33 crc_src_files := crc/crc7.c crc/crc16.c crc/crc32.c crc/crc64.c crc/crc32c.c crc/crc32c-intel.c \ 34 crc/sha1.c crc/sha256.c crc/sha512.c crc/md [all...] |
/external/kernel-headers/original/uapi/linux/ |
H A D | bcm933xx_hcs.h | 21 __u32 crc; member in struct:bcm_hcs
|
/external/stressapptest/src/ |
H A D | pattern.h | 68 const AdlerChecksum *crc() {return crc_;} function in class:Pattern 116 static inline uint32 CrcIncrement(uint32 crc, uint32 expected, int index) { argument 118 uint32 carry = (addition & crc) >> 31; 120 return crc + addition + carry;
|
/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/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/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/ |
H A D | fx_zlib_crc32.c | 17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should 35 /* Definitions for doing the crc four data bytes at a time. */ 49 /* Local functions for crc concatenation */ 95 /* terms of polynomial defining this crc (except x^32): */ 110 /* generate a crc for every 8-bit value */ 119 /* generate crc for each value followed by one, two, and three zeros, 200 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 205 unsigned long crc, 204 crc32( unsigned long crc, const unsigned char FAR *buf, uInt len) argument 247 crc32_little( unsigned long crc, const unsigned char FAR *buf, unsigned len) argument 287 crc32_big( unsigned long crc, const unsigned char FAR *buf, unsigned len) argument [all...] |
/external/qemu/distrib/libsparse/src/ |
H A D | output_file.h | 25 int gz, int sparse, int chunks, int crc); 28 int chunks, int crc);
|
/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/zlib/ |
H A D | crc32.c | 17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should 54 /* Definitions for doing the crc four data bytes at a time. */ 67 /* Local functions for crc concatenation */ 113 /* terms of polynomial defining this crc (except x^32): */ 128 /* generate a crc for every 8-bit value */ 137 /* generate crc for each value followed by one, two, and three zeros, 217 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 221 unsigned long ZEXPORT crc32(crc, bu [all...] |