FastLED 3.9.15
Loading...
Searching...
No Matches

◆ kf_bfly3()

static void kf_bfly3 ( kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
size_t m )
static

Definition at line 85 of file kiss_fft.cpp.

91{
92 size_t k=m;
93 const size_t m2 = 2*m;
94 kiss_fft_cpx *tw1,*tw2;
95 kiss_fft_cpx scratch[5];
96 kiss_fft_cpx epi3;
97 epi3 = st->twiddles[fstride*m];
98
99 tw1=tw2=st->twiddles;
100
101 do{
102 C_FIXDIV(*Fout,3); C_FIXDIV(Fout[m],3); C_FIXDIV(Fout[m2],3);
103
104 C_MUL(scratch[1],Fout[m] , *tw1);
105 C_MUL(scratch[2],Fout[m2] , *tw2);
106
107 C_ADD(scratch[3],scratch[1],scratch[2]);
108 C_SUB(scratch[0],scratch[1],scratch[2]);
109 tw1 += fstride;
110 tw2 += fstride*2;
111
112 Fout[m].r = Fout->r - HALF_OF(scratch[3].r);
113 Fout[m].i = Fout->i - HALF_OF(scratch[3].i);
114
115 C_MULBYSCALAR( scratch[0] , epi3.i );
116
117 C_ADDTO(*Fout,scratch[3]);
118
119 Fout[m2].r = Fout[m].r + scratch[0].i;
120 Fout[m2].i = Fout[m].i - scratch[0].r;
121
122 Fout[m].r -= scratch[0].i;
123 Fout[m].i += scratch[0].r;
124
125 ++Fout;
126 }while(--k);
127}
#define C_FIXDIV(c, div)
#define HALF_OF(x)
#define C_ADD(res, a, b)
#define C_ADDTO(res, a)
#define C_SUB(res, a, b)
#define C_MULBYSCALAR(c, s)
#define C_MUL(m, a, b)
kiss_fft_cpx twiddles[1]
kiss_fft_scalar r
Definition kiss_fft.h:73
kiss_fft_scalar i
Definition kiss_fft.h:74

References C_ADD, C_ADDTO, C_FIXDIV, C_MUL, C_MULBYSCALAR, C_SUB, HALF_OF, kiss_fft_cpx::i, kiss_fft_cpx::r, and kiss_fft_state::twiddles.

Referenced by kf_work().

+ Here is the caller graph for this function: