Real FFT cleanup, plus some testcases

This commit is contained in:
Jean-Marc Valin 2008-02-08 10:48:15 +11:00
parent 4d0a7d0f1b
commit e6586d21fa
8 changed files with 509 additions and 80 deletions

View file

@ -20,7 +20,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
and defines
typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
#include "kiss_fft.h"
//#include "math_approx.h"
#define MAXFACTORS 32
/* e.g. an fft of length 128 has 4 factors
@ -32,6 +31,7 @@ struct kiss_fft_state{
int nfft;
int inverse;
int factors[2*MAXFACTORS];
int *bitrev;
kiss_fft_cpx twiddles[1];
};