structure describing a given CRC code of max 64 bits
Definition: crc64gen.h:39
int osmo_crc64gen_check_bits(const struct osmo_crc64gen_code *code, const ubit_t *in, int len, const ubit_t *crc_bits)
uint64_t init
Initialization value of the CRC state.
Definition: crc64gen.h:42
void osmo_crc64gen_set_bits(const struct osmo_crc64gen_code *code, const ubit_t *in, int len, ubit_t *crc_bits)
uint64_t poly
Polynom (normal representation, MSB omitted.
Definition: crc64gen.h:41
int bits
Actual number of bits of the CRC.
Definition: crc64gen.h:40
uint8_t ubit_t
Definition: bits.h:24
uint64_t osmo_crc64gen_compute_bits(const struct osmo_crc64gen_code *code, const ubit_t *in, int len)
uint64_t remainder
Remainder of the CRC (final XOR)
Definition: crc64gen.h:43