bitReverse32
bitReverse32(
value):number
Defined in: packages/core/src/number/bit/bit-reverse32.ts:12
Reverses the bit order within the low 32 bits of value — the bit at
position 0 moves to position 31 and so on.
SWAR: swaps adjacent bit-pairs, then nibbles, then bytes, then the two 16-bit halves — the same halving strategy as popcount32, applied to a swap instead of a sum.
Parameters
Section titled “Parameters”number
The value to reverse; only its low 32 bits are considered.
Returns
Section titled “Returns”number
The bit-reversed value as an unsigned 32-bit integer.