pub fn bit_reverse<T>(v: &mut [T])
Performs a naive bit-reversal permutation inplace.
Panics if the length of the slice is not a power of two.