Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 25 of 265) sorted by relevance

1234567891011

/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python2/crcmod/
D_crcfunpy.py28 def _crc8(data, crc, table): argument
29 crc = crc & 0xFF
31 crc = table[ord(x) ^ crc]
32 return crc
34 def _crc8r(data, crc, table): argument
35 crc = crc & 0xFF
37 crc = table[ord(x) ^ crc]
38 return crc
40 def _crc16(data, crc, table): argument
41 crc = crc & 0xFFFF
[all …]
Dcrcmod.py158 crc = self.crcValue
161 lst.append(chr(crc & 0xFF))
162 crc = crc >> 8
172 crc = self.crcValue
175 lst.append('%02X' % (crc & 0xFF))
176 crc = crc >> 8
322 def _bytecrc(crc, poly, n): argument
323 crc = long(crc)
327 if crc & mask:
328 crc = (crc << 1) ^ poly
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod_osx/crcmod/
D_crcfunpy.py28 def _crc8(data, crc, table): argument
29 crc = crc & 0xFF
31 crc = table[ord(x) ^ crc]
32 return crc
34 def _crc8r(data, crc, table): argument
35 crc = crc & 0xFF
37 crc = table[ord(x) ^ crc]
38 return crc
40 def _crc16(data, crc, table): argument
41 crc = crc & 0xFFFF
[all …]
Dcrcmod.py158 crc = self.crcValue
161 lst.append(chr(crc & 0xFF))
162 crc = crc >> 8
172 crc = self.crcValue
175 lst.append('%02X' % (crc & 0xFF))
176 crc = crc >> 8
322 def _bytecrc(crc, poly, n): argument
323 crc = long(crc)
327 if crc & mask:
328 crc = (crc << 1) ^ poly
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python3/crcmod/
D_crcfunpy.py38 def _crc8(data, crc, table): argument
40 crc = crc & 0xFF
42 crc = table[x ^ crc]
43 return crc
45 def _crc8r(data, crc, table): argument
47 crc = crc & 0xFF
49 crc = table[x ^ crc]
50 return crc
52 def _crc16(data, crc, table): argument
54 crc = crc & 0xFFFF
[all …]
Dcrcmod.py159 crc = self.crcValue
162 lst.append(crc & 0xFF)
163 crc = crc >> 8
173 crc = self.crcValue
176 lst.append('%02X' % (crc & 0xFF))
177 crc = crc >> 8
319 def _bytecrc(crc, poly, n): argument
322 if crc & mask:
323 crc = (crc << 1) ^ poly
325 crc = crc << 1
[all …]
/external/e2fsprogs/lib/ext2fs/
Dcrc32c.c75 static uint32_t crc32c_le_body(uint32_t crc, uint8_t const *buf, size_t len) in crc32c_le_body() argument
86 crc = (__force uint32_t) __cpu_to_le32(crc); in crc32c_le_body()
99 i0 = *p8++ ^ crc; in crc32c_le_body()
100 crc = t0_le[i0] ^ (crc >> 8); in crc32c_le_body()
102 i0 = *p8++ ^ (crc >> 24); in crc32c_le_body()
103 crc = t0_le[i0] ^ (crc << 8); in crc32c_le_body()
112 q = *++p32 ^ crc; in crc32c_le_body()
117 crc = t3_le[i3] ^ t2_le[i2] ^ t1_le[i1] ^ t0_le[i0]; in crc32c_le_body()
119 q = *++p32 ^ crc; in crc32c_le_body()
124 crc = t3_le[i3] ^ t2_le[i2] ^ t1_le[i1] ^ t0_le[i0]; in crc32c_le_body()
[all …]
Dgen_crc32ctable.c32 uint32_t crc = 1; in crc32cinit_le() local
37 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32cinit_le()
39 crc32ctable_le[0][i + j] = crc ^ crc32ctable_le[0][j]; in crc32cinit_le()
42 crc = crc32ctable_le[0][i]; in crc32cinit_le()
44 crc = crc32ctable_le[0][crc & 0xff] ^ (crc >> 8); in crc32cinit_le()
45 crc32ctable_le[j][i] = crc; in crc32cinit_le()
56 uint32_t crc = 0x80000000; in crc32cinit_be() local
61 crc = (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0); in crc32cinit_be()
63 crc32ctable_be[0][i + j] = crc ^ crc32ctable_be[0][j]; in crc32cinit_be()
66 crc = crc32ctable_be[0][i]; in crc32cinit_be()
[all …]
/external/e2fsprogs/e2fsck/
Dcrc32.c63 __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) in crc32_le() argument
75 crc ^= *p++; in crc32_le()
77 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32_le()
79 return crc; in crc32_le()
83 __u32 crc32_le(__u32 crc, unsigned char const *p, size_t len) in crc32_le() argument
90 # define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8) in crc32_le()
92 # define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8) in crc32_le()
95 crc = __cpu_to_le32(crc); in crc32_le()
110 crc ^= *++b; in crc32_le()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python2/src/
D_crcfunext.c81 UINT8 crc; in _crc8() local
87 if (!PyArg_ParseTuple(args, INPUT8, &data, &dataLen, &crc, in _crc8()
101 crc = table[*data ^ crc]; in _crc8()
105 return PyInt_FromLong((long)crc); in _crc8()
122 UINT8 crc; in _crc8r() local
128 if (!PyArg_ParseTuple(args, INPUT8, &data, &dataLen, &crc, in _crc8r()
142 crc = table[*data ^ crc]; in _crc8r()
146 return PyInt_FromLong((long)crc); in _crc8r()
162 UINT16 crc; in _crc16() local
168 if (!PyArg_ParseTuple(args, INPUT16, &data, &dataLen, &crc, in _crc16()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python3/src/
D_crcfunext.c101 UINT8 crc; in _crc8() local
107 if (!PyArg_ParseTuple(args, INPUT8, &obj, &crc, in _crc8()
125 crc = table[*data ^ crc]; in _crc8()
131 return PyLong_FromLong((long)crc); in _crc8()
150 UINT8 crc; in _crc8r() local
156 if (!PyArg_ParseTuple(args, INPUT8, &obj, &crc, in _crc8r()
174 crc = table[*data ^ crc]; in _crc8r()
180 return PyLong_FromLong((long)crc); in _crc8r()
198 UINT16 crc; in _crc16() local
204 if (!PyArg_ParseTuple(args, INPUT16, &obj, &crc, in _crc16()
[all …]
/external/valgrind/none/tests/amd64/
Dcrc32.c15 UInt i, crc = (b & 0xFF) ^ crcIn; in do_s_crc32b() local
17 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32b()
18 return crc; in do_s_crc32b()
23 UInt i, crc = (w & 0xFFFF) ^ crcIn; in do_s_crc32w() local
25 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32w()
26 return crc; in do_s_crc32w()
31 UInt i, crc = l ^ crcIn; in do_s_crc32l() local
33 crc = (crc >> 1) ^ ((crc & 1) ? 0x82f63b78 : 0); in do_s_crc32l()
34 return crc; in do_s_crc32l()
39 UInt crc = do_s_crc32l(crcIn, (UInt)q); in do_s_crc32q() local
[all …]
/external/flac/libFLAC/
Dcrc.c114 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc) in FLAC__crc8_update() argument
116 *crc = FLAC__crc8_table[*crc ^ data]; in FLAC__crc8_update()
119 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc) in FLAC__crc8_update_block() argument
122 *crc = FLAC__crc8_table[*crc ^ *data++]; in FLAC__crc8_update_block()
127 FLAC__uint8 crc = 0; in FLAC__crc8() local
130 crc = FLAC__crc8_table[crc ^ *data++]; in FLAC__crc8()
132 return crc; in FLAC__crc8()
137 unsigned crc = 0; in FLAC__crc16() local
140 crc = ((crc<<8) ^ FLAC__crc16_table[(crc>>8) ^ *data++]) & 0xffff; in FLAC__crc16()
142 return crc; in FLAC__crc16()
/external/gptfdisk/
Dcrc32.cc34 register unsigned long crc; in chksum_crc32() local
37 crc = 0xFFFFFFFF; in chksum_crc32()
40 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_tab[(crc ^ *block++) & 0xFF]; in chksum_crc32()
42 return (crc ^ 0xFFFFFFFF); in chksum_crc32()
52 unsigned long crc, poly; in chksum_crc32gentab() local
58 crc = i; in chksum_crc32gentab()
61 if (crc & 1) in chksum_crc32gentab()
63 crc = (crc >> 1) ^ poly; in chksum_crc32gentab()
67 crc >>= 1; in chksum_crc32gentab()
70 crc_tab[i] = crc; in chksum_crc32gentab()
/external/llvm/test/MC/ARM/
Ddirective-arch_extension-crc.s10 .arch_extension crc
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 armv8
29 @ CHECK-V7: error: instruction requires: crc armv8
[all …]
Dcrc32.s3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-pref…
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 armv8
[all …]
Dcrc32-thumb.s3 @ RUN: not llvm-mc -triple=thumbv8 -mattr=-crc -show-encoding < %s 2>&1 | FileCheck %s --check-pref…
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 armv8
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/docs/source/
Dcrcmod.predefined.rst25 ``crc-8`` 0x107 False 0x00 0x00 …
26 ``crc-8-darc`` 0x139 True 0x00 0x00 …
27 ``crc-8-i-code`` 0x11D False 0xFD 0x00 …
28 ``crc-8-itu`` 0x107 False 0x55 0x55 …
29 ``crc-8-maxim`` 0x131 True 0x00 0x00 …
30 ``crc-8-rohc`` 0x107 True 0xFF 0x00 …
31 ``crc-8-wcdma`` 0x19B True 0x00 0x00 …
32 ``crc-16`` 0x18005 True 0x0000 0x0000 …
33 ``crc-16-buypass`` 0x18005 False 0x0000 0x0000 …
34 ``crc-16-dds-110`` 0x18005 False 0x800D 0x0000 …
[all …]
/external/toybox/toys/posix/
Dcksum.c32 static unsigned cksum_be(unsigned crc, unsigned char c)
34 return (crc<<8)^TT.crc_table[(crc>>24)^c];
37 static unsigned cksum_le(unsigned crc, unsigned char c) in cksum_le() argument
39 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8); in cksum_le()
44 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; in do_cksum() local
46 unsigned (*cksum)(unsigned crc, unsigned char c); in do_cksum()
59 for (i=0; i<len; i++) crc=cksum(crc, toybuf[i]); in do_cksum()
67 crc = cksum(crc, llen); in do_cksum()
73 (toys.optflags & FLAG_I) ? crc : ~crc); in do_cksum()
/external/flac/libFLAC/include/private/
Dcrc.h43 #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)]; argument
44 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc);
45 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc);
54 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data… argument
57 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<8) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]) & 0xff…
/external/aac/libFDK/src/
DFDK_crc.cpp329 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bits() local
334 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits()
336 crc <<= 1; in calcCrc_Bits()
337 crc ^= tmp; in calcCrc_Bits()
343 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits()
345 crc <<= 1; in calcCrc_Bits()
346 crc ^= tmp; in calcCrc_Bits()
349 *pCrc = crc; /* update crc value */ in calcCrc_Bits()
374 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bytes() local
378 crc = (crc<<8)^pCrcLookup[((crc>>8)^((UCHAR)FDKreadBits(hBs,8)))&0xFF]; in calcCrc_Bytes()
[all …]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/third_party/
Dcrc32c.py94 def crc_update(crc, data): argument
110 crc = crc ^ _MASK
112 table_index = (crc ^ b) & 0xff
113 crc = (CRC_TABLE[table_index] ^ (crc >> 8)) & _MASK
114 return crc ^ _MASK
117 def crc_finalize(crc): argument
128 return crc & _MASK
131 def crc(data): function
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
DCalculateCRC32.java36 int crc; in buildCRCTable() local
40 crc = i; in buildCRCTable()
42 if ((crc & 1) == 1) { in buildCRCTable()
43 crc = (crc >>> 1) ^ CRC32_POLYNOMIAL; in buildCRCTable()
45 crc >>>= 1; in buildCRCTable()
48 CRCTable[i] = crc; in buildCRCTable()
60 public static int computeCRC32(String buffer, int crc){ in computeCRC32() argument
61 return computeCRC32(buffer.getBytes(), crc); in computeCRC32()
64 public static int computeCRC32(byte buffer[], int crc) { in computeCRC32() argument
65 return computeCRC32(buffer, 0, buffer.length, crc); in computeCRC32()
/external/fio/crc/
Dcrc32c-intel.c35 static uint32_t crc32c_intel_le_hw_byte(uint32_t crc, unsigned char const *data, in crc32c_intel_le_hw_byte() argument
41 :"=S"(crc) in crc32c_intel_le_hw_byte()
42 :"0"(crc), "c"(*data) in crc32c_intel_le_hw_byte()
47 return crc; in crc32c_intel_le_hw_byte()
63 uint32_t crc = ~0; in crc32c_intel() local
68 :"=S"(crc) in crc32c_intel()
69 :"0"(crc), "c"(*ptmp) in crc32c_intel()
75 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, in crc32c_intel()
78 return crc; in crc32c_intel()
/external/lzma/C/
DLzHash.h18 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; \
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]; \
49 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
[all …]

1234567891011