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