mirror of
https://github.com/mborgerding/kissfft.git
synced 2026-02-23 07:22:56 -05:00
Add global pi constant as define
This commit is contained in:
@ -349,8 +349,7 @@ kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem
|
||||
st->inverse = inverse_fft;
|
||||
|
||||
for (i=0;i<nfft;++i) {
|
||||
const double pi=3.141592653589793238462643383279502884197169399375105820974944;
|
||||
double phase = -2*pi*i / nfft;
|
||||
double phase = -2*kiss_fft_pi*i / nfft;
|
||||
if (st->inverse)
|
||||
phase *= -1;
|
||||
kf_cexp(st->twiddles+i, phase );
|
||||
|
||||
Reference in New Issue
Block a user