| /src/external/bsd/wpa/dist/src/utils/ |
| crc32.c | 2 * 32-bit CRC for FCS calculation 78 u32 crc; local 80 crc = 0xFFFFFFFF; 82 crc = crc32_table[(crc ^ frame[i]) & 0xff] ^ (crc >> 8); 84 return ~crc;
|
| /src/external/gpl3/binutils/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/gpl3/binutils.old/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/gpl3/gcc/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/gpl3/gcc.old/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/gpl3/gdb.old/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/public-domain/xz/dist/src/liblzma/common/ |
| stream_flags_decoder.c | 39 const uint32_t crc = lzma_crc32(in + sizeof(lzma_header_magic), local 41 if (crc != unaligned_read32le(in + sizeof(lzma_header_magic) 68 const uint32_t crc = lzma_crc32(in + sizeof(uint32_t), local 70 if (crc != unaligned_read32le(in))
|
| stream_flags_encoder.c | 46 const uint32_t crc = lzma_crc32(out + sizeof(lzma_header_magic), local 50 + LZMA_STREAM_FLAGS_SIZE, crc); 76 const uint32_t crc = lzma_crc32( local 79 unaligned_write32le(out, crc);
|
| /src/external/gpl3/gdb/dist/libiberty/ |
| crc32.c | 67 For more information on CRC, see, e.g., 68 http://www.ross.net/crc/download/crc_v3.txt. */ 143 Compute the 32-bit CRC of @var{buf} which has length @var{len}. The 144 starting value is @var{init}; this may be used to compute the CRC of 150 you must pass the first CRC parameter as @code{0xffffffff}. 152 This CRC can be specified as: 161 This differs from the "standard" CRC-32 algorithm in that the values 172 unsigned int crc = init; local 175 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255] [all...] |
| /src/external/gpl2/lvm2/dist/lib/misc/ |
| crc.c | 1 /* $NetBSD: crc.c,v 1.1.1.1 2008/12/22 00:18:12 haad Exp $ */ 20 #include "crc.h" 22 /* Calculate an endian-independent CRC of supplied buffer */ 31 uint32_t i, crc = initial; local 35 crc ^= *data++; 36 crc = (crc >> 4) ^ crctab[crc & 0xf]; 37 crc = (crc >> 4) ^ crctab[crc & 0xf] [all...] |
| /src/distrib/utils/sparkcrc/ |
| sparkcrc.c | 42 * Trivial progarm to generate a crc suitable for use in a sparkive file 87 int crc = 0; local 97 crc = (crc >> 8) ^ crclookup[(crc & 0xff) ^ buf[i]]; 100 printf("%d\n", (int)crc);
|
| /src/sys/dev/nand/ |
| nand_crc.c | 34 /* Implements CRC-16 as required by the ONFI 2.3 specification */ 47 uint16_t crc = init; local 52 crc ^= data[i] << 8; 55 if ((crc & highbit) != 0x00) 56 crc = (crc << 1) ^ polynom; 58 crc <<= 1; 62 return crc;
|
| /src/external/bsd/elftosb/dist/common/ |
| crc.cpp | 2 * File: crc.cpp 8 #include "crc.h" 10 //! Table of CRC-32's of all single byte values. The values in 11 //! this table are those used in the Ethernet CRC algorithm. 238 uint32_t crc = m_crc; local 244 crc = (crc << 8) ^ m_tab[(crc >> 24) ^ c]; 249 // crc = m_tab[CRC32_INDEX(crc) ^ *s++] ^ CRC32_SHIFTED(crc) [all...] |
| /src/external/mpl/bind/dist/tests/isc/ |
| crc64_test.c | 38 uint64_t crc; local 40 isc_crc64_init(&crc); 41 assert_int_equal(crc, 0xffffffffffffffffUL); 46 uint64_t crc; local 48 isc_crc64_init(&crc); 49 assert_int_equal(crc, 0xffffffffffffffffUL); 52 isc_crc64_update(&crc, buf, buflen); 55 isc_crc64_final(&crc); 58 snprintf(hex, sizeof(hex), "%016" PRIX64, crc);
|
| /src/usr.bin/mkubootimage/ |
| crc32.c | 93 uint32_t crc; local 96 crc = ~0U; 103 crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); 106 return crc ^ ~0U;
|
| /src/usr.sbin/mtree/ |
| crc.c | 1 /* $NetBSD: crc.c,v 1.11 2024/12/05 17:17:43 christos Exp $ */ 42 static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; 44 __RCSID("$NetBSD: crc.c,v 1.11 2024/12/05 17:17:43 christos Exp $"); 114 * locations to store the crc and the number of bytes read. It returns 0 on 117 uint32_t crc_total = ~0u; /* The crc over a number of files. */ 120 crc(int fd, uint32_t *cval, uint32_t *clen) function
|
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| crc.c | 1 /* $NetBSD: crc.c,v 1.2 2017/01/28 21:31:49 christos Exp $ */ 46 unsigned long crc, poly; local 52 crc = i; 54 if (crc & 1) { 55 crc = (crc >> 1) ^ poly; 57 crc >>= 1; 60 table[i] = crc;
|
| /src/external/public-domain/xz/dist/tests/ |
| test_check.c | 28 uint32_t crc = lzma_crc32(test_string, sizeof(test_string), 0); local 29 if (crc != test_vector) 33 crc = lzma_crc32(test_unaligned + 3, sizeof(test_string), 0); 34 if (crc != test_vector) 38 crc = 0; 40 crc = lzma_crc32(test_string + i, 1, crc); 41 if (crc != test_vector) 54 uint64_t crc = lzma_crc64(test_string, sizeof(test_string), 0); local 55 if (crc != test_vector [all...] |
| test_stream_flags.c | 135 uint32_t crc = lzma_crc32(buffer + 6, 2, 0); local 136 unaligned_write32le(buffer + 8, crc); 141 crc = lzma_crc32(buffer + 6, 2, 0); 142 unaligned_write32le(buffer + 8, crc); 153 crc = lzma_crc32(buffer + 4, 6, 0); 154 unaligned_write32le(buffer, crc);
|
| /src/sys/dev/onewire/ |
| onewire_subr.c | 82 u_int8_t crc = 0; local 85 crc = crctable[crc ^ *p++]; 87 return (crc);
|
| /src/usr.bin/cksum/ |
| crc.c | 1 /* $NetBSD: crc.c,v 1.22 2021/03/18 18:12:35 cheusov Exp $ */ 42 static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; 44 __RCSID("$NetBSD: crc.c,v 1.22 2021/03/18 18:12:35 cheusov Exp $"); 113 * locations to store the crc and the number of bytes read. It returns 0 on 117 crc(int fd, uint32_t *cval, off_t *clen) function 154 uint32_t crc = crctab[a]; local 156 COMPUTE(crc, 0); 157 crcslice[b][a] = crc;
|
| /src/external/bsd/tcpdump/dist/ |
| print-mobile.c | 73 u_short proto,crc; local 86 crc = GET_BE_U_2(mob->hcheck); 105 ND_PRINT(" (bad checksum %u)", crc);
|
| /src/sys/dev/ir/ |
| sir.c | 47 * CRC computation table 211 uint32_t crc; local 221 crc = crc_ccitt_16(INITFCS, fstate->buffer, 227 if (crc == GOODFCS)
|
| /src/sys/opencrypto/ |
| deflate.c | 199 * and appending the crc and uncompressed length. 202 * a flag indication final buffer. The crc is maintained 207 * Ditto for uncompress - CRC is extracted from the final packed 208 * and compared against CRC of uncompressed data. 236 u_int32_t crc; local 253 crc = crc32(0, data, size); 254 DPRINTF("size %u, crc 0x%x\n", size, crc); 294 crc = crc32(0, NULL, 0); /* get initial crc value * [all...] |
| /src/sys/ufs/chfs/ |
| ebh_media.h | 55 /* sizeof(crc) + sizeof(lid) */ 83 * @crc: CRC32 sum 93 * Invalidated eraseblock header means that the @crc and @lid is set to 0. 96 le32 crc; member in struct:chfs_nor_eb_hdr 102 * @crc: CRC32 sum 111 le32 crc; member in struct:chfs_nand_eb_hdr
|