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

/darwin-on-arm/xnu/libkern/zlib/
H A Dcrc32.c44 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
81 /* Definitions for doing the crc four data bytes at a time. */
94 /* Local functions for crc concatenation */
138 /* terms of polynomial defining this crc (except x^32): */
153 /* generate a crc for every 8-bit value */
162 /* generate crc for each value followed by one, two, and three zeros,
242 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
246 unsigned long ZEXPORT z_crc32(crc, bu
[all...]
H A Dgzio.c90 uLong crc; /* crc32 of uncompressed data */ member in struct:gz_stream
150 s->crc = z_crc32(0L, Z_NULL, 0);
372 if ((flags & HEAD_CRC) != 0) { /* skip the header crc */
427 Bytef *start = (Bytef*)buf; /* starting point for crc computation */
497 s->crc = z_crc32(s->crc, start, (uInt)(s->stream.next_out - start));
500 if (getLong(s) != s->crc) {
511 s->crc = z_crc32(0L, Z_NULL, 0);
517 s->crc = z_crc32(s->crc, star
[all...]
/darwin-on-arm/xnu/bsd/libkern/
H A Dcrc32.c93 crc32(uint32_t crc, const void *buf, size_t size) argument
98 crc = crc ^ ~0U;
101 crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
103 return crc ^ ~0U;
H A Dlibkern.h172 uint32_t crc32(uint32_t crc, const void *bufp, size_t len);
/darwin-on-arm/xnu/bsd/dev/random/
H A Drandomdev.c199 * calculate a crc-32 checksum
203 u_int32_t crc = 0; local
208 u_int32_t temp = (crc ^ ((u_int32_t) buffer[i])) & 0xFF;
209 crc = (crc >> 8) ^ g_crc_table[temp];
212 return crc;
/darwin-on-arm/xnu/osfmk/i386/AT386/
H A Dmodel_dep.c327 crc32(uint32_t crc, const void *buf, size_t size) argument
332 crc = crc ^ ~0U;
335 crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
337 return crc ^ ~0U;
/darwin-on-arm/xnu/libkern/libkern/
H A Dzlib.h148 int hcrc; /* true if there was or will be a header crc */
537 no header crc, and the operating system will be set to 255 (unknown). If a
709 available there. If hcrc is true, a gzip header crc is included. Note that
711 1.3.x) do not support header crc's, and will report that it is a "multi-part
1010 and decode gzip streams (to avoid linking crc code)
1317 ZEXTERN uLong ZEXPORT z_crc32 OF((uLong crc, const Bytef *buf, uInt len));
1321 value for the for the crc. Pre- and post-conditioning (one's complement) is
1325 uLong crc = crc32(0L, Z_NULL, 0);
1328 crc = crc32(crc, buffe
[all...]

Completed in 27 milliseconds