Bitreversed
Bitreversed refers to the operation or concept of reversing the order of bits in a binary representation of a number, typically within a fixed width. In practice this means taking the most significant bit of the width as the least significant, and so on, so that the bit sequence is read backward. For example, with a 3-bit width, the number 3 (binary 011) becomes 6 (binary 110) after bit reversal.
Bit reversal is often described in terms of a bit-reversal permutation, which maps each index i in
In hardware and software, bit reversal is typically defined for a fixed word width. If N is
Computationally, several methods exist to obtain bit-reversed indices. A straightforward approach reverses bits with a loop;
See also: Fast Fourier Transform, bitwise operations, permutations, in-place algorithms.