X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fdsp%2Ffft.rs;h=98f890467389b6bbb13ab0378411d204b750fcfe;hb=1a151e53b591a45fb7f009e480d7abb5e03f0cfe;hp=7f9b4aa75d645500526e75aef604bd28491c76da;hpb=a1f26d1be2a62dfe4db26e9a5faaf9199f6b0325;p=nihav.git diff --git a/src/dsp/fft.rs b/src/dsp/fft.rs index 7f9b4aa..98f8904 100644 --- a/src/dsp/fft.rs +++ b/src/dsp/fft.rs @@ -130,7 +130,7 @@ impl FFT { } return; } - + let hsize = (1 << (bits - 1)) as usize; self.do_fft_inplace_ct(&mut data[0..hsize], bits - 1, forward); self.do_fft_inplace_ct(&mut data[hsize..], bits - 1, forward);