BitUint32Extension extension

Bit twiddling loosely based on http://graphics.stanford.edu/~seander/bithacks.html.

on

Properties

bitCeil int
Returns the power of 2 that is greater or equal to this unsigned 32-bit integer.
no setter
bitCount int
Returns the bits set of an unsigned 32-bit integer. This value is also known as "binary weight" or "Hamming weight".
no setter
bitFloor int
Returns the power of 2 that is smaller or equal to this unsigned 32-bit integer.
no setter
hasSingleBit bool
Tests if this unsigned 32-bit integer has a single bit set, which also means that it is a power of two.
no setter