8 crc = crc & 0x80000000 ? ((crc<<1)^
polynomial) : (crc << 1);
15 for (
size_t i=0; i<length; i++) {
17 crc = ::crc32(crc, (
uint8_t)((
data[i] >> 24) & 0xFF));
18 crc = ::crc32(crc, (
uint8_t)((
data[i] >> 16) & 0xFF));
19 crc = ::crc32(crc, (
uint8_t)((
data[i] >> 8) & 0xFF));
constexpr uint32_t polynomial
uint32_t crc32(const uint32_t *data, size_t length)