Skip to content

Comment on Reversing Bits in Cparent

Comments

A common approach for performing a Fast Fourier Transform involves reversing the bits in time-domain samples.

Expanding slightly, there’s a permutation that needs to happen in order to efficiently perform a DFT in-place (and the same approach is often used even when the transform is out-of-place). For power of two sizes (one of the most common cases), that permutation is precisely the same as a bit reversal of the indices.

Reversing the bits in the index to the samples :-)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.