replaced twiddles arrays definition by lazy definition (via macros and #ifndef)
This commit is contained in:
11
.project
Normal file
11
.project
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>Theta_fourier</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
@ -3,8 +3,10 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifndef FFT_FP_EXTERNAL_TWIDDLES
|
||||||
static int64_t twiddle_re[TWIDDLE_L] = {0,};
|
static int64_t twiddle_re[TWIDDLE_L] = {0,};
|
||||||
static int64_t twiddle_im[TWIDDLE_L] = {0,};
|
static int64_t twiddle_im[TWIDDLE_L] = {0,};
|
||||||
|
#endif
|
||||||
|
|
||||||
void fft_twiddle_gen(int64_t* tw_re, int64_t* tw_im){
|
void fft_twiddle_gen(int64_t* tw_re, int64_t* tw_im){
|
||||||
for (uint32_t k = 0; k < TWIDDLE_L; ++k){
|
for (uint32_t k = 0; k < TWIDDLE_L; ++k){
|
||||||
|
|||||||
@ -19,6 +19,11 @@
|
|||||||
#define PI 3.141592653589793238462643383279502884197169399375105820974944
|
#define PI 3.141592653589793238462643383279502884197169399375105820974944
|
||||||
#endif
|
#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_twiddle_gen(int64_t* twiddle_re, int64_t* twiddle_im);
|
||||||
void fft_fp_prepare(void);
|
void fft_fp_prepare(void);
|
||||||
void FFT_fp(int64_t* inp, uint32_t inp_L, int64_t* buf);
|
void FFT_fp(int64_t* inp, uint32_t inp_L, int64_t* buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user