Home
last modified time | relevance | path

Searched refs:crc_table (Results 1 – 25 of 31) sorted by relevance

12

/third_party/libwebsockets/win32port/zlib/
Dcrc32.c77 local unsigned long FAR crc_table[TBLS][256]; variable
133 crc_table[0][n] = c; in make_crc_table()
140 c = crc_table[0][n]; in make_crc_table()
141 crc_table[4][n] = REV(c); in make_crc_table()
143 c = crc_table[0][c & 0xff] ^ (c >> 8); in make_crc_table()
144 crc_table[k][n] = c; in make_crc_table()
145 crc_table[k + 4][n] = REV(c); in make_crc_table()
169 write_table(out, crc_table[0]); in make_crc_table()
174 write_table(out, crc_table[k]); in make_crc_table()
213 return (const unsigned long FAR *)crc_table; in get_crc_table()
[all …]
Dcrc32.h5 local const unsigned long FAR crc_table[TBLS][256] = variable
/third_party/node/deps/zlib/
Dcrc32.c66 local z_crc_t FAR crc_table[TBLS][256]; variable
122 crc_table[0][n] = c; in make_crc_table()
129 c = crc_table[0][n]; in make_crc_table()
130 crc_table[4][n] = ZSWAP32(c); in make_crc_table()
132 c = crc_table[0][c & 0xff] ^ (c >> 8); in make_crc_table()
133 crc_table[k][n] = c; in make_crc_table()
134 crc_table[k + 4][n] = ZSWAP32(c); in make_crc_table()
158 write_table(out, crc_table[0]); in make_crc_table()
163 write_table(out, crc_table[k]); in make_crc_table()
203 return (const z_crc_t FAR *)crc_table; in get_crc_table()
[all …]
Dcrc32.h5 local const z_crc_t FAR crc_table[TBLS][256] = variable
/third_party/skia/third_party/externals/zlib/
Dcrc32.c63 local z_crc_t FAR crc_table[TBLS][256]; variable
119 crc_table[0][n] = c; in make_crc_table()
126 c = crc_table[0][n]; in make_crc_table()
127 crc_table[4][n] = ZSWAP32(c); in make_crc_table()
129 c = crc_table[0][c & 0xff] ^ (c >> 8); in make_crc_table()
130 crc_table[k][n] = c; in make_crc_table()
131 crc_table[k + 4][n] = ZSWAP32(c); in make_crc_table()
155 write_table(out, crc_table[0]); in make_crc_table()
160 write_table(out, crc_table[k]); in make_crc_table()
200 return (const z_crc_t FAR *)crc_table; in get_crc_table()
[all …]
Dcrc32.h5 local const z_crc_t FAR crc_table[TBLS][256] = variable
/third_party/flutter/skia/third_party/externals/zlib/
Dcrc32.c66 local z_crc_t FAR crc_table[TBLS][256]; variable
122 crc_table[0][n] = c; in make_crc_table()
129 c = crc_table[0][n]; in make_crc_table()
130 crc_table[4][n] = ZSWAP32(c); in make_crc_table()
132 c = crc_table[0][c & 0xff] ^ (c >> 8); in make_crc_table()
133 crc_table[k][n] = c; in make_crc_table()
134 crc_table[k + 4][n] = ZSWAP32(c); in make_crc_table()
158 write_table(out, crc_table[0]); in make_crc_table()
163 write_table(out, crc_table[k]); in make_crc_table()
203 return (const z_crc_t FAR *)crc_table; in get_crc_table()
[all …]
Dcrc32.h5 local const z_crc_t FAR crc_table[TBLS][256] = variable
/third_party/freetype/src/gzip/
Dcrc32.c145 local z_crc_t FAR crc_table[256]; variable
283 crc_table[i] = p; in make_crc_table()
326 write_table(out, crc_table, 256); in make_crc_table()
591 return (const z_crc_t FAR *)crc_table; in get_crc_table()
722 data = (data >> 8) ^ crc_table[data & 0xff]; in crc_word()
766 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1042 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1043 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1044 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1045 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
[all …]
Dcrc32.h5 local const z_crc_t FAR crc_table[] = { variable
/third_party/zlib/
Dcrc32.c145 local z_crc_t FAR crc_table[256]; variable
283 crc_table[i] = p; in make_crc_table()
326 write_table(out, crc_table, 256); in make_crc_table()
591 return (const z_crc_t FAR *)crc_table; in get_crc_table()
722 data = (data >> 8) ^ crc_table[data & 0xff];
766 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
1042 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
1043 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
1044 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
1045 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
[all …]
Dcrc32.h5 local const z_crc_t FAR crc_table[] = { variable
/third_party/toybox/toys/posix/
Dcksum.c39 unsigned crc_table[256]; in GLOBALS()
44 return (crc<<8)^TT.crc_table[(crc>>24)^c];
49 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8); in cksum_le()
90 crc_init(TT.crc_table, toys.optflags & FLAG_L); in cksum_main()
/third_party/ffmpeg/libavformat/
Dapngenc.c64 const AVCRC *crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in apng_write_chunk() local
68 av_assert0(crc_table); in apng_write_chunk()
72 crc = av_crc(crc_table, crc, tagbuf, 4); in apng_write_chunk()
75 crc = av_crc(crc_table, crc, buf, length); in apng_write_chunk()
Doggenc.c106 const AVCRC *crc_table = av_crc_get_table(AV_CRC_32_IEEE); in ogg_write_page() local
120 crc = av_crc(crc_table, 0, buf, ptr - buf); in ogg_write_page()
121 crc = av_crc(crc_table, crc, page->data, page->size); in ogg_write_page()
/third_party/ffmpeg/libavcodec/
Dttaenc.c30 const AVCRC *crc_table; member
40 s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in tta_encode_init()
186 put_bits32(&pb, av_crc(s->crc_table, UINT32_MAX, avpkt->data, out_bytes) ^ UINT32_MAX); in tta_encode_frame()
Dtta.c51 const AVCRC *crc_table; member
80 crc = av_crc(s->crc_table, 0xFFFFFFFFU, buf, buf_size); in tta_check_crc()
136 s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in tta_decode_init()
Dhcadec.c46 const AVCRC *crc_table; member
115 c->crc_table = av_crc_get_table(AV_CRC_16_ANSI); in decode_init()
399 if (av_crc(c->crc_table, 0, avpkt->data, avpkt->size)) in decode_frame()
Dpngenc.c227 const AVCRC *crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in png_write_chunk() local
233 crc = av_crc(crc_table, crc, tagbuf, 4); in png_write_chunk()
236 crc = av_crc(crc_table, crc, buf, length); in png_write_chunk()
247 const AVCRC *crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in png_write_image_data() local
259 crc = av_crc(crc_table, crc, s->bytestream - 8, 8); in png_write_image_data()
261 crc = av_crc(crc_table, crc, buf, length); in png_write_image_data()
Dalsdec.c199 const AVCRC *crc_table; member
428 ctx->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); in read_specific_config()
1876 ctx->crc = av_crc(ctx->crc_table, ctx->crc, (uint8_t*)(&v), 3); in decode_frame()
1899 ctx->crc = av_crc(ctx->crc_table, ctx->crc, crc_source, in decode_frame()
/third_party/gstreamer/gstplugins_good/gst/audioparsers/
Dgstsbcparse.c362 static const guint8 crc_table[256] = { variable
404 crc = crc_table[crc ^ *data]; in gst_sbc_calculate_crc8()
/third_party/toybox/lib/
Ddeflate.c426 unsigned crc, *crc_table = dd->crctable; in gzip_crc() local
429 for (i = 0; i<len; i++) crc = crc_table[(crc^data[i])&0xff] ^ (crc>>8); in gzip_crc()
/third_party/skia/third_party/externals/libpng/contrib/tools/
Dpngfix.c488 static png_uint_32 crc_table[256] = variable
553 return crc_table[(crc ^ b) & 0xff] ^ (crc >> 8); in crc_one_byte()
566 png_uint_32 crc = crc_table[(~value >> 24)] ^ 0xffffff; in crc_init_4()
568 crc = crc_table[(crc ^ (value >> 16)) & 0xff] ^ (crc >> 8); in crc_init_4()
569 crc = crc_table[(crc ^ (value >> 8)) & 0xff] ^ (crc >> 8); in crc_init_4()
570 return crc_table[(crc ^ value) & 0xff] ^ (crc >> 8); in crc_init_4()
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/
Dpngfix.c488 static png_uint_32 crc_table[256] = variable
553 return crc_table[(crc ^ b) & 0xff] ^ (crc >> 8); in crc_one_byte()
566 png_uint_32 crc = crc_table[(~value >> 24)] ^ 0xffffff; in crc_init_4()
568 crc = crc_table[(crc ^ (value >> 16)) & 0xff] ^ (crc >> 8); in crc_init_4()
569 crc = crc_table[(crc ^ (value >> 8)) & 0xff] ^ (crc >> 8); in crc_init_4()
570 return crc_table[(crc ^ value) & 0xff] ^ (crc >> 8); in crc_init_4()
/third_party/zlib/doc/
Drfc1952.txt606 unsigned long crc_table[256];
633 crc_table[n] = c;
660 c = crc_table[(c ^ buf[n]) & 0xff] ^ (c >> 8);

12