Go to the source code of this file.
◆ foreach_set_bit
#define foreach_set_bit |
( |
|
var, |
|
|
|
mask, |
|
|
|
body |
|
) |
| |
Value:do { \
uword _foreach_set_bit_m_##var = (mask); \
uword _foreach_set_bit_f_##var; \
while (_foreach_set_bit_m_##var != 0) \
{ \
_foreach_set_bit_f_##var =
first_set (_foreach_set_bit_m_##var); \
_foreach_set_bit_m_##var ^= _foreach_set_bit_f_##var; \
(var) =
min_log2 (_foreach_set_bit_f_##var); \
do { body; } while (0); \
} \
} while (0)
static uword min_log2(uword x)
static uword first_set(uword x)
Definition at line 166 of file bitops.h.
◆ compress_bits()
◆ compress_init()
◆ count_set_bits()
◆ next_with_same_number_of_set_bits()
static uword next_with_same_number_of_set_bits |
( |
uword |
x | ) |
|
|
inlinestatic |
◆ rotate_left()
◆ rotate_right()