Skip to content

Instantly share code, notes, and snippets.

@xypron
xypron / bit_reversed_order.c
Last active September 22, 2020 00:37
Bit reversed order rearrangement of array in O(n) time.
/*
For Fast Fourier Transformations an important step is the rearrangement of the
data in a bit reversed order.
The implemention below shows how to do this inplace or as copy in O(n) runtime.
*/
/*
The MIT License (MIT)