32 lines
593 B
C
32 lines
593 B
C
#ifndef FFT_FP_REALISATION_H
|
|
#define FFT_FP_REALISATION_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifndef DATA_L
|
|
#define DATA_L (1 << 16)
|
|
#endif
|
|
|
|
#ifndef FP_acc
|
|
#define FP_acc 1000
|
|
#endif
|
|
|
|
#ifndef TWIDDLE_L
|
|
#define TWIDDLE_L (DATA_L / 2)
|
|
#endif
|
|
|
|
#ifndef PI
|
|
#define PI 3.141592653589793238462643383279502884197169399375105820974944
|
|
#endif
|
|
|
|
#ifdef FFT_FP_EXTERNAL_TWIDDLES
|
|
extern int64_t twiddle_re[TWIDDLE_L];
|
|
extern int64_t twiddle_im[TWIDDLE_L];
|
|
#endif
|
|
|
|
void fft_twiddle_gen(int64_t* twiddle_re, int64_t* twiddle_im);
|
|
void fft_fp_prepare(void);
|
|
void FFT_fp(int64_t* inp, uint32_t inp_L, int64_t* buf);
|
|
|
|
#endif
|