// // fft.h // NaiveFFT // // Created by Jacky Jack on 26/08/2021. // #ifndef fft_h #define fft_h #include #include #include #include #include #if __EMSCRIPTEN__ #include #endif #ifdef __EMSCRIPTEN__ #define KEEPALIVE EMSCRIPTEN_KEEPALIVE #else #define KEEPALIVE #endif void KEEPALIVE fft_if(double *x_i, double *x_q, int n, int inv); void KEEPALIVE ffti_shuffle_1(double *x_i, double *x_q, uint64_t n); void KEEPALIVE fft_1(double *x_i, double *x_q, uint64_t n, uint64_t inv); void KEEPALIVE dft(double *x_i, double *x_q, int n, int inv); #endif /* fft_h */