permute_index

Function permute_index 

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

Computes bit reverse of the specified index in the domain of the specified size.

Domain size is assumed to be a power of two and index must be smaller than domain size.