/external/elfutils/lib/ |
H A D | crc32.c | 78 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 D | crc.c | 20 /* 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 D | pcrc.c | 125 unsigned int pcrcUpdateData(unsigned int crc, const void *data, unsigned int size) argument 129 register unsigned int remainder = crc;
|
H A D | pmemory.c | 100 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 D | print-mobile.c | 75 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 D | ChecksumImpl.cs | 109 private static extern uint crc32(uint crc, int data, uint length);
argument
|
/external/oprofile/libutil/ |
H A D | op_fileio.c | 165 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 D | mztools.c | 64 unsigned int crc = READ_32(header + 14); /* crc */ local 154 WRITE_32(header + 16, crc);
|
H A D | unzip.h | 110 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info_s
|
/external/clearsilver/util/ |
H A D | neo_misc.c | 217 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 D | sv_init.c | 260 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 D | mztools.c | 59 unsigned int crc = READ_32(header + 14); /* crc */ local 149 WRITE_32(header + 16, crc);
|
H A D | unzip.h | 118 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 D | gzjoin.c | 238 /* 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 D | gun.c | 120 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 D | gzappend.c | 261 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 D | gzread.c | 189 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 D | a2dp.h | 86 uint8_t crc:1; member in struct:mpeg_codec_cap 110 uint8_t crc:1; member in struct:mpeg_codec_cap
|
H A D | gsta2dpsink.c | 509 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 D | dfutool.c | 320 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 D | ubcsp.c | 50 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 D | gzio.c | 63 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 D | phLlcNfc_Frame.c | 1758 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 D | gzio.c | 63 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 D | net_ser.cpp | 25 #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...] |