replaced twiddles arrays definition by lazy definition (via macros and #ifndef)

This commit is contained in:
2025-10-09 14:41:57 +03:00
parent 1256c9b807
commit 86f488e456
3 changed files with 18 additions and 0 deletions

View File

@ -3,8 +3,10 @@
#include <math.h>
#include <stdio.h>
#ifndef FFT_FP_EXTERNAL_TWIDDLES
static int64_t twiddle_re[TWIDDLE_L] = {0,};
static int64_t twiddle_im[TWIDDLE_L] = {0,};
#endif
void fft_twiddle_gen(int64_t* tw_re, int64_t* tw_im){
for (uint32_t k = 0; k < TWIDDLE_L; ++k){