[][src]Function zkp_primefield::fft::permute_index

pub fn permute_index(size: usize, index: usize) -> usize

Permute index for an FFT of size

The permutation is it's own inverse. The permutation is currently a 'bit-reversal' one, where each index has its binary representation reversed.