/* * A stand-alone implementation of the Fast Fourier Transformation (FFT). * Written 09/02/1999 by Mark-André Hopf . * * Note: I thought this might be useful to someone since all other * FFT implementations need additional libraries. */ void fft(double *rbuffer, double *ibuffer, unsigned n) { // presort unsigned j=0; unsigned b1 = n>>1; for(unsigned i=0; i>=1; } j^=m; } // fft unsigned long mmax, m, i; double wr,wi; double tempr,tempi; mmax=1; while(mmax