asmjit::Support::BitWordIterator< T > Class Template Reference
template<typename T>
class asmjit::Support::BitWordIterator< T >

Iterates over each bit in a number which is set to 1.

Example of use:

uint32_t bitsToIterate = 0x110F;
while (it.hasNext()) {
uint32_t bitIndex = it.next();
std::printf("Bit at %u is set\n", unsigned(bitIndex));
}

Public Members

Member Functions