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

1234

/haiku-fatelf/src/libs/compat/freebsd_network/
H A Dfbsd_ether.c46 uint32_t crc;
50 crc = 0xffffffff; /* initial value */
54 carry = (crc ^ data) & 1;
55 crc >>= 1;
57 crc = (crc ^ ETHER_CRC_POLY_LE);
60 return (crc);
73 uint32_t crc; local
75 crc = 0xffffffff; /* initial value */
78 crc
91 uint32_t crc, carry; local
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/udf/
H A Dcrc_table.cpp13 This code based off of crc code in UDF-2.50 specs, as permitted.
21 ulong crc, poly; local
39 crc = n << 8;
41 if (crc & 0x8000)
42 crc = (crc << 1) ^ poly;
44 crc <<= 1;
45 crc &= 0xffff;
47 printf("0x%04x%s ", crc, (n != 255 ? "," : ""));
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/udf/r5/
H A Dcrc_table.cpp13 This code based off of crc code in UDF-2.50 specs, as permitted.
21 ulong crc, poly; local
39 crc = n << 8;
41 if (crc & 0x8000)
42 crc = (crc << 1) ^ poly;
44 crc <<= 1;
45 crc &= 0xffff;
47 printf("0x%04x%s ", crc, (n != 255 ? "," : ""));
H A DUtils.cpp152 /*! \brief Calculates the UDF crc checksum for the given byte stream.
154 Based on crc code from UDF-2.50 6.5, as permitted.
159 \return The crc checksum, or 0 if an error occurred.
164 uint16 crc = 0; local
167 crc = Udf::kCrcTable[(crc >> 8 ^ *data) & 0xff] ^ (crc << 8);
169 return crc;
/haiku-fatelf/src/add-ons/kernel/file_systems/ext2/
H A Dcrc_table.cpp13 This code based off of crc code in UDF-2.50 specs, as permitted.
24 ulong crc, poly; local
42 crc = n;
44 if (crc & 0x0001)
45 crc = (crc >> 1) ^ poly;
47 crc >>= 1;
49 printf("0x%04x%s ", crc, (n != 255 ? "," : ""));
H A DCRCTable.h9 uint16 calculate_crc(uint16 crc, uint8 *data, uint16 length);
/haiku-fatelf/src/add-ons/kernel/file_systems/btrfs/
H A Dcrc_table.cpp13 This code based off of crc code in UDF-2.50 specs, as permitted.
40 uint32 crc, poly; local
54 crc = reflect32(n);
56 if (crc & 0x80000000)
57 crc = (crc << 1) ^ poly;
59 crc <<= 1;
61 crc = reflect32(crc);
62 printf("0x%08x%s ", crc, (
[all...]
H A DCRCTable.h9 uint32 calculate_crc(uint32 crc, uint8 *data, uint16 length);
H A DCRCTable.cpp50 /*! \brief Calculates the UDF crc checksum for the given byte stream.
52 Based on crc code from UDF-2.50 6.5, as permitted.
58 \return The crc checksum, or 0 if an error occurred.
61 calculate_crc(uint32 crc, uint8 *data, uint16 length) argument
65 crc = kCrcTable[(crc ^ *data) & 0xff] ^ (crc >> 8);
67 return crc;
/haiku-fatelf/src/bin/gdb/gdb/rdi-share/
H A Dcrc.h15 * crc.h - describes some "standard" CRC calculation routines.
59 * crc initial CRC value to be used (can be the output
65 unsigned int crc);
77 * crc initial CRC value to be used (can be the output
84 unsigned short crc);
90 /* EOF crc.h */
H A Dcrc.c15 * crc.c - provides some "standard" CRC calculation routines.
18 #include "crc.h" /* describes this code */
94 unsigned int crc32(unsigned char *address, unsigned int size, unsigned int crc) argument
112 crc = (((crc >> 8) & 0x00FFFFFF) ^
113 crc32table[(crc ^ ((data >> 24) & 0xFF)) & 0xFF]);
114 crc = (((crc >> 8) & 0x00FFFFFF) ^
115 crc32table[(crc ^ ((data >> 16) & 0xFF)) & 0xFF]);
116 crc
208 crc16(unsigned char *address, unsigned int size, unsigned short crc) argument
[all...]
H A Drx.c23 #include "crc.h" /* crc generation definitions and headers */
52 rxstate->crc = 0;
112 rxstate->crc = crc32(&new_ch, 1, rxstate->crc);
124 * order to len,crc,stx,etx,typ might gain a tiny bit of speed but lets
134 rxstate->crc = startCRC32;
152 rxstate->crc = crc32(&new_ch, 1, rxstate->crc);
157 rxstate->crc
[all...]
H A Dtx.c22 #include "crc.h" /* crc generation definitions and headers */
54 txstate->crc = 0;
74 txstate->crc = startCRC32; /* set up basic crc */
110 __rt_trace("txe-crc ");
112 *tx_ch = escape((txstate->crc >> ((txstate->field_c - 1) * 8)) & 0xff,
117 __rt_trace("txe crc = 0x%x\n", txstate->crc);
144 * crc generatio
[all...]
H A Drxtx.h88 unsigned int crc; /* crc for the unescaped pkt */ member in struct:data_packet
164 unsigned int crc; /* crc accumulator */ member in struct:re_state
175 unsigned int crc; /* space for CRC (before escaping) */ member in struct:te_state
H A DMakefile.am7 libangsd_a_SOURCES = ardi.c angel_bytesex.c crc.c devsw.c drivers.c etherdrv.c \
12 chandefs.h channels.h chanpriv.h crc.h dbg_conf.h dbg_cp.h \
/haiku-fatelf/src/bin/unzip/
H A Dcrc32.c31 #define DO1(buf) crc = CRC32(crc, *buf++)
37 ulg crc32(crc, buf, len)
38 register ulg crc; /* crc shift register */
41 /* Run a set of bytes through the crc shift register. If buf is a NULL
42 pointer, then initialize the crc shift register contents instead.
43 Return the current crc in either case. */
51 crc = crc
[all...]
/haiku-fatelf/src/bin/zip/
H A Dcrc32.c31 #define DO1(buf) crc = CRC32(crc, *buf++)
37 ulg crc32(crc, buf, len)
38 register ulg crc; /* crc shift register */
41 /* Run a set of bytes through the crc shift register. If buf is a NULL
42 pointer, then initialize the crc shift register contents instead.
43 Return the current crc in either case. */
51 crc = crc
[all...]
/haiku-fatelf/src/add-ons/media/plugins/matroska/libebml/
H A DEbmlCrc32.cpp241 uint32 crc = CRC32_NEGL; local
244 crc = m_tab[CRC32_INDEX(crc) ^ *input++] ^ CRC32_SHIFTED(crc);
248 crc ^= *(const uint32 *)input;
249 crc = m_tab[CRC32_INDEX(crc)] ^ CRC32_SHIFTED(crc);
250 crc = m_tab[CRC32_INDEX(crc)]
305 uint32 crc = m_crc; local
[all...]
/haiku-fatelf/src/bin/gzip/
H A Dzip.c25 local ulg crc; /* crc on uncompressed file data */ variable
58 crc = updcrc(0, 0);
88 /* Write the crc and uncompressed size */
89 put_long(crc);
100 * translation, and update the crc and input file size.
114 crc = updcrc((uch*)buf, len);
/haiku-fatelf/src/libs/zlib/
H A Dcrc32.c17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
54 /* Definitions for doing the crc four data bytes at a time. */
67 /* Local functions for crc concatenation */
113 /* terms of polynomial defining this crc (except x^32): */
128 /* generate a crc for every 8-bit value */
137 /* generate crc for each value followed by one, two, and three zeros,
217 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
221 unsigned long ZEXPORT crc32(crc, bu
[all...]
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-mobile.c75 u_short proto,crc; local
87 crc = EXTRACT_16BITS(&mob->hcheck);
105 (void)printf(" (bad checksum %d)",crc);
/haiku-fatelf/src/add-ons/kernel/partitioning_systems/gpt/
H A Defi_gpt.h42 void SetHeaderCRC(uint32 crc) argument
43 { header_crc = B_HOST_TO_LENDIAN_INT32(crc); }
76 void SetEntriesCRC(uint32 crc) argument
77 { entries_crc = B_HOST_TO_LENDIAN_INT32(crc); }
/haiku-fatelf/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_crypto_wep.c316 uint32_t i, j, k, crc; local
342 crc = ~0;
351 crc = crc32_table[(crc ^ *pos) & 0xff] ^ (crc >> 8);
373 crc = ~crc;
376 icv[0] = crc;
377 icv[1] = crc >> 8;
378 icv[2] = crc >> 1
399 uint32_t i, j, k, crc; local
[all...]
/haiku-fatelf/src/bin/coreutils/src/
H A Dcksum.c185 uint_fast32_t crc = 0;
217 crc = (crc << 8) ^ crctab[((crc >> 24) ^ *cp++) & 0xFF];
239 crc = (crc << 8) ^ crctab[((crc >> 24) ^ length) & 0xFF];
241 crc = ~crc & 0xFFFFFFFF;
244 printf ("%u %s %s\n", (unsigned int) crc, h
184 uint_fast32_t crc = 0; local
[all...]
/haiku-fatelf/headers/private/firewire/
H A Diec13213.h142 crc:16; member in struct:csrhdr
144 uint32_t crc:16,
150 BIT16x2(crc_len, crc);
154 BIT16x2(crc_len, crc);
245 BIT16x2(crc_len, crc);

Completed in 182 milliseconds

1234