7 #define BITS_NOT_FOUND ((uint64_t)UINT64_MAX) 9 #define BITS_PER_BYTE (8) 10 #define BITS_PER_UINT64 (BITS_PER_BYTE * sizeof(uint64_t)) 12 #define BITS_TO_UINT64_ALIGN(x) \ 13 (((uint64_t)x / BITS_PER_UINT64 + 1) * sizeof(uint64_t)) 14 #define BITS_TO_UINT64(x) ((uint64_t)x / BITS_PER_UINT64) 22 static inline void set_bit(uint64_t *bits, uint64_t index)
36 static inline int get_bit(uint64_t *bits, uint64_t index)
48 static inline void reset_bit(uint64_t *bits, uint64_t index)
68 if (bucket < (uint64_t)UINT64_MAX) {
71 if ((bucket & (uint64_t)((uint64_t)0x1
97 if (bucket > (uint64_t)0x0) {
101 (uint64_t)((uint64_t)0x1 << diff)) > 0) {
#define BITS_TO_UINT64(x)
Definition: bits.h:14
static void reset_bit(uint64_t *bits, uint64_t index)
reset the index position bit in the array(uint64_t)
Definition: bits.h:48
static uint64_t find_first_zero_bit(uint64_t *bits, uint64_t size, uint64_t idx)
find first zero bit in the array(uint64_t)
Definition: bits.h:63
#define BITS_PER_UINT64
Definition: bits.h:10
static int get_bit(uint64_t *bits, uint64_t index)
get the value at the index position bit in the array(uint64_t)
Definition: bits.h:36
static void set_bit(uint64_t *bits, uint64_t index)
set the index position bit in the array(uint64_t)
Definition: bits.h:22
#define BITS_NOT_FOUND
Definition: bits.h:7
static uint64_t find_first_one_bit(uint64_t *bits, uint64_t size, uint64_t idx)
find first one bit in the array(uint64_t)
Definition: bits.h:92