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)
always_inline uword first_set(uword x)
always_inline uword min_log2(uword x)
Definition at line 146 of file bitops.h.