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