Searched defs:crc (Results 1 - 25 of 54) sorted by relevance

123

/external/elfutils/lib/
H A Dcrc32.c78 crc32 (uint32_t crc, unsigned char *buf, size_t len) argument
82 crc = ~crc;
84 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
85 return ~crc;
/external/quake/quake/src/QW/client/
H A Dcrc.c20 /* crc.c */
23 #include "crc.h"
85 unsigned short crc; local
87 CRC_Init (&crc);
89 crc = (crc << 8) ^ crctable[(crc >> 8) ^ *start++];
91 return crc;
/external/srec/portable/src/
H A Dpcrc.c125 unsigned int pcrcUpdateData(unsigned int crc, const void *data, unsigned int size) argument
129 register unsigned int remainder = crc;
H A Dpmemory.c100 unsigned int crc; member in struct:MemMapEntry_t
177 unsigned int crc = ~pcrcComputeString(key); local
178 int initialIdx = (int)(crc % MAX_MEM_TAG);
189 gMemoryMap[idx].crc = crc;
199 if (gMemoryMap[idx].crc == crc &&
466 unsigned int crc; local
494 crc = ~pcrcComputeString(e->tag);
495 if (crc !
[all...]
/external/tcpdump/
H A Dprint-mobile.c75 u_short proto,crc; local
87 crc = EXTRACT_16BITS(&mob->hcheck);
105 (void)printf(" (bad checksum %d)",crc);
/external/zlib/contrib/dotzlib/DotZLib/
H A DChecksumImpl.cs109 private static extern uint crc32(uint crc, int data, uint length); argument
/external/oprofile/libutil/
H A Dop_fileio.c165 calc_crc32(unsigned long crc, unsigned char * buf, size_t len) argument
224 crc = ~crc & 0xffffffff;
226 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
227 return ~crc & 0xffffffff;
/external/chromium/third_party/zlib/contrib/minizip/
H A Dmztools.c64 unsigned int crc = READ_32(header + 14); /* crc */ local
154 WRITE_32(header + 16, crc);
H A Dunzip.h110 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info_s
/external/clearsilver/util/
H A Dneo_misc.c217 UINT32 crc, i; local
219 crc = (UINT32)-1;
222 crc = ((crc >> 8) & 0xFFFFFF) ^ CRCTable[((crc ^ *data) & 0xFF)];
224 crc = ~crc;
226 return crc;
/external/quake/quake/src/QW/server/
H A Dsv_init.c260 unsigned short crc; local
264 crc = CRC_Block(buf, com_filesize);
266 // CRC_ProcessByte(&crc, *buf);
268 return crc;
/external/zlib/contrib/minizip/
H A Dmztools.c59 unsigned int crc = READ_32(header + 14); /* crc */ local
149 WRITE_32(header + 16, crc);
H A Dunzip.h118 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info64_s
139 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info_s
/external/zlib/examples/
H A Dgzjoin.c238 /* skip header crc if present */
264 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) argument
267 *crc = crc32(0L, Z_NULL, 0);
274 the output, and the gzip trailer is written. crc and tot maintains the
275 crc and length (modulo 2^32) of the output for the trailer. The resulting
277 of gzcopy() to write the gzip header and to initialize crc and tot. */
278 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, argument
409 /* update crc and tot */
410 *crc = crc32_combine(*crc, bget
428 unsigned long crc, tot; /* running crc and total uncompressed length */ local
[all...]
H A Dgun.c120 int check; /* true if checking crc and total */
121 unsigned long crc; member in struct:outd
136 me->crc = crc32(me->crc, buf, len);
459 if (flags & 2) { /* header crc */
468 outd.crc = crc32(0L, Z_NULL, 0);
482 if (NEXT() != (int)(outd.crc & 0xff) ||
483 NEXT() != (int)((outd.crc >> 8) & 0xff) ||
484 NEXT() != (int)((outd.crc >> 16) & 0xff) ||
485 NEXT() != (int)((outd.crc >> 2
[all...]
H A Dgzappend.c261 unsigned long crc, tot; local
293 crc = crc32(0L, Z_NULL, 0);
314 /* update crc and sliding window pointer */
315 crc = crc32(crc, window + have, DSIZE - have - strm->avail_out);
341 if (crc != read4(&gz))
342 bye("invalid compressed data--crc mismatch in ", name);
365 /* set up deflate stream with window, crc, total_in, and leftover bits */
369 strm->adler = crc;
/external/zlib/
H A Dgzread.c189 if (flags & 2) { /* header crc */
228 to point to the just decompressed data, and the crc is updated. If the
238 unsigned long crc, len; local
270 /* update available output and crc check value */
277 if (gz_next4(state, &crc) == -1 || gz_next4(state, &len) == -1) {
281 if (crc != strm->adler) {
/external/bluetooth/bluez/audio/
H A Da2dp.h86 uint8_t crc:1; member in struct:mpeg_codec_cap
110 uint8_t crc:1; member in struct:mpeg_codec_cap
H A Dgsta2dpsink.c509 gboolean crc; local
541 /* send directly the crc */
542 if (gst_tag_list_get_boolean(self->taglist, "has-crc", &crc))
543 gst_avdtp_sink_set_crc(self->sink, crc);
/external/bluetooth/bluez/tools/
H A Ddfutool.c320 uint32_t crc; local
364 crc = crc32_init();
366 crc = crc32_byte(crc, buf[i]);
367 printf("Checksum\t%08x\n", crc);
398 crc = crc32_init();
400 crc = crc32_byte(crc, buf[i]);
403 printf("Firmware check\t%s checksum\n", crc == 0 ? "valid" : "corrupt");
426 uint32_t crc, dwCR local
597 uint32_t crc; local
[all...]
H A Dubcsp.c50 static uint16 ubcsp_calc_crc (uint8 ch, uint16 crc);
127 /* This is the storage required for building send and crc data */
216 /** Takes the next 8 bit value ch, and updates the crc with this value **/
223 static uint16 ubcsp_calc_crc (uint8 ch, uint16 crc) argument
237 crc = (crc >> 4) ^ crc_table[(crc ^ ch) & 0x000f];
238 crc = (crc >> 4) ^ crc_table[(crc
251 ubcsp_crc_reverse(uint16 crc) argument
374 crc; local
[all...]
/external/chromium/third_party/zlib/
H A Dgzio.c63 uLong crc; /* crc32 of uncompressed data */ member in struct:gz_stream
127 s->crc = crc32(0L, Z_NULL, 0);
349 if ((flags & HEAD_CRC) != 0) { /* skip the header crc */
404 Bytef *start = (Bytef*)buf; /* starting point for crc computation */
474 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
477 if (getLong(s) != s->crc) {
488 s->crc = crc32(0L, Z_NULL, 0);
494 s->crc = crc32(s->crc, star
[all...]
/external/libnfc-nxp/src/
H A DphLlcNfc_Frame.c1758 uint16_t crc = 0; local
1761 crc = 0x6363; /* ITU-V.41 */
1763 crc = 0xFFFF; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
1769 phLlcNfc_H_UpdateCrc(crc_byte, &crc);
1774 crc = ~crc; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
1777 *pCrc1 = (uint8_t) (crc & 0xFF);
1778 *pCrc2 = (uint8_t) ((crc >> 8) & 0xFF);
/external/qemu/distrib/zlib-1.2.3/
H A Dgzio.c63 uLong crc; /* crc32 of uncompressed data */ member in struct:gz_stream
123 s->crc = crc32(0L, Z_NULL, 0);
345 if ((flags & HEAD_CRC) != 0) { /* skip the header crc */
400 Bytef *start = (Bytef*)buf; /* starting point for crc computation */
470 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
473 if (getLong(s) != s->crc) {
484 s->crc = crc32(0L, Z_NULL, 0);
490 s->crc = crc32(s->crc, star
[all...]
/external/quake/quake/src/WinQuake/
H A Dnet_ser.cpp25 #include "crc.h"
45 // the checksum is a 16-bit value. the CRC formula used is defined in crc.h.
331 Con_DPrintf("Serial: Bad crc\n");
416 unsigned short crc; local
420 CRC_Init (&crc);
427 CRC_ProcessByte (&crc, b);
434 CRC_ProcessByte (&crc, b);
441 CRC_ProcessByte (&crc, b);
446 CRC_ProcessByte (&crc, b);
455 CRC_ProcessByte (&crc,
500 unsigned short crc; local
572 unsigned short crc; local
611 unsigned short crc; local
[all...]

Completed in 250 milliseconds

123