36 for (
int u = 0; u < 256; ++u)
60 static const uint32_t poly = 0xedb88320;
62 for (
int i = 0;
i < len; ++
i)
65 for (
int bit = 8; bit--;)
66 c = (c & 1) ? (c >> 1) ^ poly : (c >> 1);
68 return c ^ 0xffffffff;
73 #endif // LEANSDR_CRC_H
uint32_t crc32(const uint8_t *buf, int len)
uint8_t compute(const uint8_t *buf, int len)
static const uint8_t POLY_DVBS2_CRC8
bitvect< T, N > shiftdivmod(const Tm *m, size_t nm, const bitvect< T, N > &p, T init=0)