summaryrefslogblamecommitdiffstats
path: root/NaiveFFT/fft.h
blob: 80ae6ccdfc25d4ae6910316a2da5a4918b17f2c7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                        




                                  
 









                                                                         

                  
//
//  fft.h
//  NaiveFFT
//
//  Created by Jacky Jack on 26/08/2021.
//

#ifndef fft_h
#define fft_h

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdint.h>
#include <unistd.h>
#if __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#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 */