/* An FFT routine */ #include #include #include #include "complexdefs.h" #define PI 3.1415926536 /* Globally declared array will hold complex exponentials. The array must be initialized with the routine initialize_exps below before using Fourier transform. */ Complex *exps; void initialize_exps(int N) { int i; exps=malloc(N*sizeof(Complex)); for(i=0;i>1; m=m>>1; } if(j>1; arraysize=arraysize<<1; } if(mode!=1) for(j=0;j