22 #ifndef GNSS_SDR_BITS_H 23 #define GNSS_SDR_BITS_H 34 uint8_t parity(uint32_t x);
35 uint32_t getbitu(
const uint8_t *buff, uint32_t pos, uint8_t len);
36 int32_t getbits(
const uint8_t *buff, uint32_t pos, uint8_t len);
37 void setbitu(uint8_t *buff, uint32_t pos, uint32_t len, uint32_t data);
38 void setbits(uint8_t *buff, uint32_t pos, uint32_t len, int32_t data);
39 void bitcopy(
void *dst, uint32_t dst_index,
40 const void *src, uint32_t src_index, uint32_t count);
41 void bitshl(
void *buf, uint32_t size, uint32_t shift);
42 uint8_t count_bits_u64(uint64_t v, uint8_t bv);
43 uint8_t count_bits_u32(uint32_t v, uint8_t bv);
44 uint8_t count_bits_u16(uint16_t v, uint8_t bv);
45 uint8_t count_bits_u8(uint8_t v, uint8_t bv);
Common definitions used throughout the libswiftnav library.