Go to the source code of this file.
#define foreach_set_bit |
( |
|
var, |
|
|
|
mask, |
|
|
|
body |
|
) |
| |
Value: 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 158 of file bitops.h.
static uword next_with_same_number_of_set_bits |
( |
uword |
x | ) |
|
|
inlinestatic |