Set/unset bits iterator
pczarn opened this issue · comments
We could use leading_zeros or trailing_zeros to iterate over the indices of set or unset bits, avoiding lots of arithmetic/shifting.
A Set of Bits
pczarn opened this issue · comments
We could use leading_zeros or trailing_zeros to iterate over the indices of set or unset bits, avoiding lots of arithmetic/shifting.