summaryrefslogtreecommitdiff
path: root/NaiveFFT/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'NaiveFFT/fft.c')
-rw-r--r--NaiveFFT/fft.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/NaiveFFT/fft.c b/NaiveFFT/fft.c
index cfcf3fa..b4c7d33 100644
--- a/NaiveFFT/fft.c
+++ b/NaiveFFT/fft.c
@@ -11,7 +11,7 @@
//calc the fft
-void fft_if(double *x_i, double *x_q, int n, int inv) {
+void KEEPALIVE fft_if(double *x_i, double *x_q, int n, int inv) {
int i=0,j=0,k=0,m=0, irem=0, sign;
double tq,ti;
@@ -109,7 +109,7 @@ void fft_if(double *x_i, double *x_q, int n, int inv) {
#define complex_mul_re(a_re, a_im, b_re, b_im) (a_re * b_re - a_im * b_im)
#define complex_mul_im(a_re, a_im, b_re, b_im) (a_re * b_im + a_im * b_re)
//https://github.com/rshuston/FFT-C/blob/master/libfft/fft.c
-void ffti_shuffle_1(double *x_i, double *x_q, uint64_t n) {
+void KEEPALIVE ffti_shuffle_1(double *x_i, double *x_q, uint64_t n) {
int Nd2 = n>>1;
int Nm1 = n-1;
int i,j;
@@ -156,7 +156,7 @@ void ffti_shuffle_1(double *x_i, double *x_q, uint64_t n) {
j ^= bits;
}
}
-void fft_1(double *x_i, double *x_q, uint64_t n, uint64_t inv) {
+void KEEPALIVE fft_1(double *x_i, double *x_q, uint64_t n, uint64_t inv) {
uint64_t n_log2;
uint64_t r;
uint64_t m, md2;
@@ -225,7 +225,7 @@ void fft_1(double *x_i, double *x_q, uint64_t n, uint64_t inv) {
}
//dft works fine
-void dft(double *x_i, double *x_q, int n, int inv) {
+void KEEPALIVE dft(double *x_i, double *x_q, int n, int inv) {
double Wn,Wk;
//static array
//double Xi[DATA_SIZE],Xq[DATA_SIZE];