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 94 of file kiss_fft.cpp.hpp.

100{
101 size_t k=m;
102 const size_t m2 = 2*m;
103 kiss_fft_cpx *tw1,*tw2;
104 kiss_fft_cpx scratch[5];
105 kiss_fft_cpx epi3;
106 epi3 = st->twiddles[fstride*m];
107
108 tw1=tw2=st->twiddles;
109
110 do{
111 C_FIXDIV(*Fout,3); C_FIXDIV(Fout[m],3); C_FIXDIV(Fout[m2],3);
112
113 C_MUL(scratch[1],Fout[m] , *tw1);
114 C_MUL(scratch[2],Fout[m2] , *tw2);
115
116 C_ADD(scratch[3],scratch[1],scratch[2]);
117 C_SUB(scratch[0],scratch[1],scratch[2]);
118 tw1 += fstride;
119 tw2 += fstride*2;
120
121 Fout[m].r = Fout->r - HALF_OF(scratch[3].r);
122 Fout[m].i = Fout->i - HALF_OF(scratch[3].i);
123
124 C_MULBYSCALAR( scratch[0] , epi3.i );
125
126 C_ADDTO(*Fout,scratch[3]);
127
128 Fout[m2].r = Fout[m].r + scratch[0].i;
129 Fout[m2].i = Fout[m].i - scratch[0].r;
130
131 Fout[m].r -= scratch[0].i;
132 Fout[m].i += scratch[0].r;
133
134 ++Fout;
135 }while(--k);
136}
#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:85
kiss_fft_scalar i
Definition kiss_fft.h:86

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

Referenced by kf_work().

+ Here is the caller graph for this function: