Home
last modified time | relevance | path

Searched refs:crc (Results 1 - 25 of 223) sorted by relevance

123456789

/third_party/zlib/
H A Dcrc32.c7 * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution.
15 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
571 * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
584 unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, in crc32_z() argument
601 crc = (~crc) & 0xffffffff; in crc32_z()
607 __asm__ volatile("crc32b %w0, %w0, %w1" : "+r"(crc) : "r"(val)); in crc32_z()
625 __asm__ volatile("crc32x %w0, %w0, %x1" : "+r"(crc) : "r"(val0)); in crc32_z()
631 crc = multmodp(Z_BATCH_ZEROS, crc) in crc32_z()
705 crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len) crc32_z() argument
1026 crc32(unsigned long crc, const unsigned char FAR *buf, uInt len) crc32() argument
[all...]
/third_party/node/deps/zlib/
H A Dcrc32.c7 * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution.
15 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
569 * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
582 unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, in crc32_z() argument
599 crc = (~crc) & 0xffffffff; in crc32_z()
605 __asm__ volatile("crc32b %w0, %w0, %w1" : "+r"(crc) : "r"(val)); in crc32_z()
623 __asm__ volatile("crc32x %w0, %w0, %x1" : "+r"(crc) : "r"(val0)); in crc32_z()
629 crc = multmodp(Z_BATCH_ZEROS, crc) in crc32_z()
701 crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len) crc32_z() argument
1083 crc32(unsigned long crc, const unsigned char FAR *buf, uInt len) crc32() argument
[all...]
/third_party/gptfdisk/
H A Dcrc32.cc34 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 in chksum_crc32gentab()
[all...]
/third_party/toybox/toys/posix/
H A Dcksum.c42 static unsigned cksum_be(unsigned crc, unsigned char c) in cksum_be() argument
44 return (crc<<8)^TT.crc_table[(crc>>24)^c]; in cksum_be()
47 static unsigned cksum_le(unsigned crc, unsigned char c) in cksum_le() argument
49 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8); in cksum_le()
54 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; in do_cksum() local
56 unsigned (*cksum)(unsigned crc, unsigned char c); in do_cksum()
68 for (i=0; i<len; i++) crc=cksum(crc, toybu in do_cksum()
[all...]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
H A DCalculateCRC32.java38 int crc; in buildCRCTable()
42 crc = i; in buildCRCTable()
44 if ((crc & 1) == 1) { in buildCRCTable()
45 crc = (crc >>> 1) ^ CRC32_POLYNOMIAL; in buildCRCTable()
47 crc >>>= 1; in buildCRCTable()
50 CRCTable[i] = crc; in buildCRCTable()
62 public static int computeCRC32(String buffer, int crc){ in computeCRC32() argument
63 return computeCRC32(buffer.getBytes(), crc); in computeCRC32()
66 public static int computeCRC32(byte buffer[], int crc) { in computeCRC32() argument
[all...]
/third_party/node/deps/v8/third_party/zlib/
H A Dcrc32.c17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
39 /* Definitions for doing the crc four data bytes at a time. */
53 /* Local functions for crc concatenation */
99 /* terms of polynomial defining this crc (except x^32): */ in make_crc_table()
114 /* generate a crc for every 8-bit value */ in make_crc_table()
123 /* generate crc for each value followed by one, two, and three zeros, in make_crc_table()
204 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
208 unsigned long ZEXPORT crc32_z(crc, bu
[all...]
/third_party/skia/third_party/externals/zlib/
H A Dcrc32.c17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
39 /* Definitions for doing the crc four data bytes at a time. */
53 /* Local functions for crc concatenation */
99 /* terms of polynomial defining this crc (except x^32): */ in make_crc_table()
114 /* generate a crc for every 8-bit value */ in make_crc_table()
123 /* generate crc for each value followed by one, two, and three zeros, in make_crc_table()
204 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
208 unsigned long ZEXPORT crc32_z(crc, bu
[all...]
/third_party/littlefs/
H A Dlfs_util.c15 uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { in lfs_crc() argument
26 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 0)) & 0xf]; in lfs_crc()
27 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 4)) & 0xf]; in lfs_crc()
30 return crc; in lfs_crc()
/third_party/ffmpeg/libavfilter/
H A Dvf_readvitc.c66 uint8_t crc; in get_vitc_crc() local
68 crc = 0x01 | (line[0] << 2); in get_vitc_crc()
69 crc ^= (line[0] >> 6) | 0x04 | (line[1] << 4); in get_vitc_crc()
70 crc ^= (line[1] >> 4) | 0x10 | (line[2] << 6); in get_vitc_crc()
71 crc ^= (line[2] >> 2) | 0x40; in get_vitc_crc()
72 crc ^= line[3]; in get_vitc_crc()
73 crc ^= 0x01 | (line[4] << 2); in get_vitc_crc()
74 crc ^= (line[4] >> 6) | 0x04 | (line[5] << 4); in get_vitc_crc()
75 crc ^= (line[5] >> 4) | 0x10 | (line[6] << 6); in get_vitc_crc()
76 crc in get_vitc_crc()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmlp.c25 #include "libavutil/crc.h"
100 uint16_t crc; in ff_mlp_checksum16() local
102 crc = av_crc(crc_2D, 0, buf, buf_size - 2); in ff_mlp_checksum16()
103 crc ^= AV_RL16(buf + buf_size - 2); in ff_mlp_checksum16()
104 return crc; in ff_mlp_checksum16()
119 int crc = crc_1D[buf[0] & 0x3f]; in ff_mlp_restart_checksum() local
120 crc = av_crc(crc_1D, crc, buf + 1, num_bytes - 2); in ff_mlp_restart_checksum()
121 crc ^= buf[num_bytes - 1]; in ff_mlp_restart_checksum()
124 crc << in ff_mlp_restart_checksum()
[all...]
/third_party/ffmpeg/libavformat/
H A Dcrcenc.c33 CRCState *crc = s->priv_data; in crc_init() local
36 crc->crcval = 1; in crc_init()
43 CRCState *crc = s->priv_data; in crc_write_packet() local
44 crc->crcval = av_adler32_update(crc->crcval, pkt->data, pkt->size); in crc_write_packet()
50 CRCState *crc = s->priv_data; in crc_write_trailer() local
52 avio_printf(s->pb, "CRC=0x%08"PRIx32"\n", crc->crcval); in crc_write_trailer()
58 .name = "crc",
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A Dpng-fix-itxt.c46 unsigned long crc; in main() local
81 crc = crc32(0, Z_NULL, 0); in main()
93 crc = crc32(crc, buf+4, (uInt)length+4); in main()
98 if (((crc >> 24) & 0xffU) == buf[length+8] && in main()
99 ((crc >> 16) & 0xffU) == buf[length+9] && in main()
100 ((crc >> 8) & 0xffU) == buf[length+10] && in main()
101 ((crc ) & 0xffU) == buf[length+11]) in main()
113 crc = crc32(crc, bu in main()
[all...]
/third_party/lzma/C/
H A DXzCrc64.h18 #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 Z7_FASTCALL Crc64Update(UInt64 crc, const void *data, size_t size);
H A D7zCrc.h17 #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 Z7_FASTCALL CrcUpdate(UInt32 crc, const void *data, size_t size);
H A DXzCrc64Opt.c10 #define CRC64_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
37 #define CRC64_UPDATE_BYTE_2_BE(crc, b) (table[(Byte)((crc) >> 56) ^ (b)] ^ ((crc) << 8))
/third_party/libwebsockets/win32port/zlib/
H A Dcrc32.c17 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): */ in make_crc_table()
128 /* generate a crc for every 8-bit value */ in make_crc_table()
137 /* generate crc for each value followed by one, two, and three zeros, in make_crc_table()
217 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
221 unsigned long ZEXPORT crc32(crc, bu
[all...]
/third_party/skia/third_party/externals/brotli/java/org/brotli/integration/
H A DBundleHelper.java81 public static long updateCrc64(long crc, byte[] data, int offset, int length) { in updateCrc64() argument
83 long c = (crc ^ (long) (data[i] & 0xFF)) & 0xFF; in updateCrc64()
87 crc = c ^ (crc >>> 8); in updateCrc64()
89 return crc; in updateCrc64()
97 long crc = -1; in fingerprintStream()
103 crc = updateCrc64(crc, buffer, 0, len); in fingerprintStream()
105 return ~crc; in fingerprintStream()
/third_party/elfutils/lib/
H A Dcrc32_file.c44 uint32_t crc = 0; in crc32_file() local
69 *resp = crc32 (crc, mapped, st.st_size); in crc32_file()
73 crc = crc32 (crc, mapped, mapsize); in crc32_file()
86 crc = crc32 (crc, buffer, count); in crc32_file()
89 *resp = crc; in crc32_file()
H A Dcrc32.c94 crc32 (uint32_t crc, unsigned char *buf, size_t len) in crc32() argument
98 crc = ~crc; in crc32()
100 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8); in crc32()
101 return ~crc; in crc32()
/third_party/elfutils/libdwelf/
H A Ddwelf_elf_gnu_debuglink.c1 /* Returns the file name and crc stored in the .gnu_debuglink if found.
36 dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc) in dwelf_elf_gnu_debuglink() argument
68 if (rawdata->d_size <= sizeof *crc in dwelf_elf_gnu_debuglink()
69 || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL) in dwelf_elf_gnu_debuglink()
75 .d_buf = crc, in dwelf_elf_gnu_debuglink()
76 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink()
82 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc, in dwelf_elf_gnu_debuglink()
83 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink()
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/
H A DDictionaryTest.java23 long crc = -1; in crc64()
25 long c = (crc ^ (long) (data.get(i) & 0xFF)) & 0xFF; in crc64()
29 crc = c ^ (crc >>> 8); in crc64()
31 return ~crc; in crc64()
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
H A DDictionaryTest.cs17 long crc = -1; in Crc64()
20 long c = (crc ^ (long)(data[i] & unchecked((int)(0xFF)))) & unchecked((int)(0xFF)); in Crc64()
25 crc = c ^ ((long)(((ulong)crc) >> 8)); in Crc64()
27 return ~crc; in Crc64()
/third_party/lame/libmp3lame/
H A DVbrTag.c249 /* the default VBR header. 48 kbps layer III, no padding, no crc */ in setLameTagFrameHeader()
276 * Xing header: samplerate, channels, crc, etc... in setLameTagFrameHeader()
550 CRC_update_lookup(uint16_t crc, unsigned char const *buffer, int size) in CRC_update_lookup() argument
553 crc ^= buffer[1] << 8 | buffer[0]; in CRC_update_lookup()
555 crc = crc16_lookup[7][crc & 0xFF] ^ crc16_lookup[6][crc >> 8 ] ^ in CRC_update_lookup()
564 while (size--) crc = (crc >> 8) ^ crc16_lookup[0][(crc in CRC_update_lookup()
569 UpdateMusicCRC(uint16_t * crc, unsigned char const *buffer, int size) UpdateMusicCRC() argument
590 PutLameVBR(lame_global_flags const *gfp, size_t nMusicLength, uint8_t * pbtStreamBuffer, uint16_t crc) PutLameVBR() argument
976 uint16_t crc = 0x00; lame_get_lametag_frame() local
[all...]
/third_party/ffmpeg/libavutil/
H A Dhash.c26 #include "crc.h"
62 uint32_t crc; member
155 case CRC32: ctx->crc = UINT32_MAX; break; in av_hash_init()
156 case ADLER32: ctx->crc = 1; break; in av_hash_init()
176 case CRC32: ctx->crc = av_crc(ctx->crctab, ctx->crc, src, len); break; in av_hash_update()
177 case ADLER32: ctx->crc = av_adler32_update(ctx->crc, src, len); break; in av_hash_update()
197 case CRC32: AV_WB32(dst, ctx->crc ^ UINT32_MAX); break; in av_hash_final()
198 case ADLER32: AV_WB32(dst, ctx->crc); brea in av_hash_final()
[all...]
/third_party/vk-gl-cts/framework/common/
H A DtcuSeedBuilder.cpp25 * different results. Then values are passed through 32 bit crc.
41 deUint32 crc = oldCrc; in advanceCrc32() local
46 crc = crc ^ current; in advanceCrc32()
50 if (crc & 1u) in advanceCrc32()
51 crc = (crc >> 1u) ^ generator; in advanceCrc32()
53 crc = (crc >> 1u); in advanceCrc32()
57 return crc; in advanceCrc32()
[all...]

Completed in 13 milliseconds

123456789