Searched refs:crc (Results 51 - 75 of 86) sorted by relevance

1234

/haiku-fatelf/src/libs/pdflib/libs/flate/
H A Dzlib.h841 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
843 Update a running crc with the bytes buf[0..len-1] and return the updated
844 crc. If buf is NULL, this function returns the required initial value
845 for the crc. Pre- and post-conditioning (one's complement) is performed
849 uLong crc = crc32(0L, Z_NULL, 0);
852 crc = crc32(crc, buffer, length);
854 if (crc != original_crc) error();
/haiku-fatelf/src/bin/gdb/gdb/
H A Dutils.c3044 gnu_debuglink_crc32 (unsigned long crc, unsigned char *buf, size_t len)
3102 crc = ~crc & 0xffffffff;
3104 crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
3105 return ~crc & 0xffffffff;;
3031 gnu_debuglink_crc32(unsigned long crc, unsigned char *buf, size_t len) argument
H A Ddefs.h405 extern unsigned long gnu_debuglink_crc32 (unsigned long crc,
H A Dremote.c4762 crc32 (unsigned char *buf, int len, unsigned int crc)
4780 crc = (crc << 8) ^ crc32_table[((crc >> 24) ^ *buf) & 255];
4783 return crc;
4749 crc32(unsigned char *buf, int len, unsigned int crc) argument
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/dc/
H A Dif_dc.c911 uint32_t crc; local
914 crc = ether_crc32_le(addr, ETHER_ADDR_LEN);
921 return (crc & ((1 << DC_BITS_128) - 1));
925 return (crc & ((1 << DC_BITS_64) - 1));
930 if ((crc & 0x180) == 0x180)
931 return ((crc & 0x0F) + (crc & 0x70) * 3 + (14 << 4));
933 return ((crc & 0x1F) + ((crc >> 1) & 0xF0) * 3 +
937 return (crc
946 uint32_t crc; local
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/firewire/
H A Dfirewire.cpp1440 fc->topology_map->crc = fw_crc16(
1443 fc->speed_map->crc = fw_crc16(
2376 uint32_t i, sum, crc = 0; local
2381 sum = ((crc >> 12) ^ (ptr[i/4] >> shift)) & 0xf;
2382 crc = (crc << 4) ^ ( sum << 12 ) ^ ( sum << 5) ^ sum;
2384 crc &= 0xffff;
2386 return((uint16_t) crc);
/haiku-fatelf/src/add-ons/kernel/file_systems/udf/
H A DUdfStructures.cpp41 //! crc 010041 table, as generated by crc_table.cpp
520 PRINT(("crc: %d\n", crc()));
535 value of false, to keep from trying to calculate a crc value on invalid
542 \param calculateCrc Whether or not to perform the crc calculation
553 PRINT(("crc (calculated) == %d\n",
557 PRINT(("crc (calculated) == (not calculated)\n"));
559 PRINT(("crc (in structure) == %d\n", crc()));
572 // crc
[all...]
H A DUdfStructures.h582 uint16 crc() const { return B_LENDIAN_TO_HOST_INT16(_crc); } function in struct:descriptor_tag
590 void set_crc(uint16 crc) { _crc = B_HOST_TO_LENDIAN_INT16(crc); } argument
594 /*! \brief Calculates and sets the crc length, crc checksumm, and
599 in the descriptor_tag itself other than crc_length, crc, and checksum
601 descriptor_tag, and the crc is based off the values in and the
619 // crc
620 uint16 crc = calculate_crc(reinterpret_cast<uint8*>(this) local
622 set_crc(crc);
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/udf/r5/
H A DUdfStructures.cpp56 //! crc 010041 table, as generated by crc_table.cpp
501 PRINT(("crc: %d\n", crc()));
516 value of false, to keep from trying to calculate a crc value on invalid
523 \param calculateCrc Whether or not to perform the crc calculation
534 PRINT(("crc (calculated) == %d\n",
538 PRINT(("crc (calculated) == (not calculated)\n"));
540 PRINT(("crc (in structure) == %d\n", crc()));
553 // crc
[all...]
H A DUdfStructures.h580 uint16 crc() const { return B_LENDIAN_TO_HOST_INT16(_crc); } function in struct:Udf::descriptor_tag
588 void set_crc(uint16 crc) { _crc = B_HOST_TO_LENDIAN_INT16(crc); } argument
592 /*! \brief Calculates and sets the crc length, crc checksumm, and
597 in the descriptor_tag itself other than crc_length, crc, and checksum
599 descriptor_tag, and the crc is based off the values in and the
617 // crc
618 uint16 crc = Udf::calculate_crc(reinterpret_cast<uint8*>(this) local
620 set_crc(crc);
[all...]
/haiku-fatelf/headers/libs/zlib/
H A Dzlib.h124 int hcrc; /* true if there was or will be a header crc */
546 header crc, and the operating system will be set to 255 (unknown). If a
721 available there. If hcrc is true, a gzip header crc is included. Note that
723 1.3.x) do not support header crc's, and will report that it is a "multi-part
1074 and decode gzip streams (to avoid linking crc code)
1498 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1502 initial value for the for the crc. Pre- and post-conditioning (one's
1508 uLong crc = crc32(0L, Z_NULL, 0);
1511 crc = crc32(crc, buffe
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/cdda/
H A Dcdda.cpp26 uint8 crc[2]; member in struct:cdtext_pack_data
/haiku-fatelf/src/bin/zip/
H A Dzip.h130 ulg tim, crc, siz, len; member in struct:zlist
/haiku-fatelf/src/libs/zlib/
H A Dzlib.h124 int hcrc; /* true if there was or will be a header crc */
546 header crc, and the operating system will be set to 255 (unknown). If a
721 available there. If hcrc is true, a gzip header crc is included. Note that
723 1.3.x) do not support header crc's, and will report that it is a "multi-part
1074 and decode gzip streams (to avoid linking crc code)
1498 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1502 initial value for the for the crc. Pre- and post-conditioning (one's
1508 uLong crc = crc32(0L, Z_NULL, 0);
1511 crc = crc32(crc, buffe
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/rdc/dev/vte/
H A Dif_vte.c1945 uint32_t crc; local
1996 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
1998 mchash[crc >> 30] |= 1 << ((crc >> 26) & 0x0F);
/haiku-fatelf/src/add-ons/kernel/drivers/network/syskonnect/dev/sk/
H A Dif_sk.c697 uint32_t crc; local
700 crc = ether_crc32_le(addr, ETHER_ADDR_LEN);
702 return (~crc & ((1 << HASH_BITS) - 1));
804 u_int32_t crc, hashes[2] = { 0, 0 }, mode; local
823 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
826 crc &= 0x3f;
828 hashes[crc >> 5] |= 1 << (crc & 0x1f);
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro1000/dev/e1000/
H A De1000_ich8lan.c1573 u32 i, j, mask, crc; local
1577 crc = 0xffffffff;
1579 crc = crc ^ mac[i];
1581 mask = (crc & 1) * (-1);
1582 crc = (crc >> 1) ^ (poly & mask);
1585 return ~crc;
/haiku-fatelf/src/tools/docbook/libxml2/
H A DxmlIO.c1196 unsigned long crc; member in struct:xmlZMemBuff_
1319 buff->crc = crc32( 0L, NULL, 0 );
1433 buff->crc = crc32( buff->crc, (unsigned char *)src, len );
1488 append_reverse_ulong( buff, buff->crc );
/haiku-fatelf/src/libs/pdflib/libs/png/
H A Dpngrutil.c136 png_uint_32 crc; local
155 crc = png_get_uint_32(crc_bytes);
156 return ((int)(crc != png_ptr->crc));
/haiku-fatelf/src/add-ons/kernel/drivers/network/attansic_l2/dev/ae/
H A Dif_ae.c2037 uint32_t crc; local
2077 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
2079 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f);
/haiku-fatelf/src/add-ons/kernel/drivers/network/jmicron2x0/dev/jme/
H A Dif_jme.c3244 uint32_t crc; local
3284 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
3288 crc &= 0x3f;
3291 mchash[crc >> 5] |= 1 << (crc & 0x1f);
/haiku-fatelf/src/bin/unzip/
H A Dunzpriv.h1518 ulg crc; /* crc (needed if extended header) */ member in struct:min_info
2031 ulg crc32 OF((ulg crc, ZCONST uch *buf, extent len));
/haiku-fatelf/src/add-ons/kernel/drivers/network/attansic_l1/dev/age/
H A Dif_age.c3104 uint32_t crc; local
3134 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
3136 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f);
/haiku-fatelf/src/add-ons/kernel/drivers/network/atheros813x/dev/alc/
H A Dif_alc.c3709 uint32_t crc; local
3736 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
3738 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f);
/haiku-fatelf/src/add-ons/kernel/drivers/network/ar81xx/dev/ale/
H A Dif_ale.c3023 uint32_t crc; local
3053 crc = ether_crc32_be(LLADDR((struct sockaddr_dl *)
3055 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f);

Completed in 266 milliseconds

1234