comparison peck_fftr.c @ 3:3b31bd44a09f

cleanup
author Peter Meerwald <p.meerwald@bct-electronic.com>
date Fri, 16 Sep 2011 13:08:20 +0200
parents 723f588b82ac
children 2d6c49fcafcb
comparison
equal deleted inserted replaced
2:3d08140650d8 3:3b31bd44a09f
56 for (i = 0; i < nfft/2; ++i) { 56 for (i = 0; i < nfft/2; ++i) {
57 float phase = 57 float phase =
58 -3.14159265359f * ((float) (i+1) / nfft + 0.5f); 58 -3.14159265359f * ((float) (i+1) / nfft + 0.5f);
59 if (inverse_fft) 59 if (inverse_fft)
60 phase *= -1; 60 phase *= -1;
61 kf_cexp(st->super_twiddles+i,phase); 61 kf_cexp(st->super_twiddles+i, phase);
62 } 62 }
63 return st; 63 return st;
64 } 64 }
65 65
66 void peck_fftr(peck_fftr_cfg st, const peck_fft_scalar *timedata, peck_fft_cpx *freqdata) { 66 void peck_fftr(peck_fftr_cfg st, const peck_fft_scalar *timedata, peck_fft_cpx *freqdata) {

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.