(n: usize)
| 54 | /// Next power-of-two ≥ `n`, returning `n` itself if already pow2. |
| 55 | #[inline] |
| 56 | fn next_pow2(n: usize) -> usize { |
| 57 | if n.is_power_of_two() { |
| 58 | n |
| 59 | } else { |
| 60 | n.next_power_of_two() |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /// In-place Walsh-Hadamard Transform of a power-of-2 length slice. |
| 65 | /// O(N log N) butterfly. Does not normalise by 1/√N (sign-only code |
no outgoing calls
no test coverage detected