crc32c
multitable_crc32c(uint32_t crc32c,
return (crc32c);
return (crc32c_sb8_64_bit(crc32c, buffer, length, to_even_word));
table_crc32c(uint32_t crc32c, const unsigned char *buffer, unsigned int length)
return (singletable_crc32c(crc32c, buffer, length));
return (multitable_crc32c(crc32c, buffer, length));
(uint32_t crc32c, const unsigned char *buffer, unsigned int length))
(uint32_t crc32c, const unsigned char *buffer, unsigned int length))
calculate_crc32c(uint32_t crc32c,
return (table_crc32c(crc32c, buffer, length));
calculate_crc32c(uint32_t crc32c, const unsigned char *buffer, unsigned int length)
return (singletable_crc32c(crc32c, buffer, length));
local_sctp_finalize_crc32(uint32_t crc32c)
result = ~crc32c;
crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3);
crc32c = result;
return (crc32c);
sctp_finalize_crc32c(uint32_t crc32c)
byte0 = crc32c & 0x000000ff;
byte1 = (crc32c >> 8) & 0x000000ff;
byte2 = (crc32c >> 16) & 0x000000ff;
byte3 = (crc32c >> 24) & 0x000000ff;
crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3);
return (~crc32c);
uint32_t calculate_crc32c(uint32_t crc32c, const unsigned char *buffer,
check_crc32c(uint32_t expected, uint32_t crc32c, const void *buffer,
act = sse42_crc32c(crc32c, buffer, length);
act = armv8_crc32c(crc32c, buffer, length);
act = singletable_crc32c(crc32c, buffer, length);
act = multitable_crc32c(crc32c, buffer, length);
checksum = crc32c(&header, sizeof(header));
checksum = crc32c(&header, sizeof(header));
checksum = crc32c(region_table, SIZE_64KB);
u_int32_t i, crc32c;
crc32c = ~0;
CRC32C(crc32c, buf[i]);
crc32c = ~crc32c;
byte0 = crc32c & 0xff;
byte1 = (crc32c >> 8) & 0xff;
byte2 = (crc32c >> 16) & 0xff;
byte3 = (crc32c >> 24) & 0xff;
crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3);
return (htonl(crc32c));
u_int32_t i, crc32c;
crc32c = ~0;
CRC32C(crc32c, buf[i]);
crc32c = ~crc32c;
byte0 = crc32c & 0xff;
byte1 = (crc32c >> 8) & 0xff;
byte2 = (crc32c >> 16) & 0xff;
byte3 = (crc32c >> 24) & 0xff;
crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3);
return (htonl(crc32c));