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

◆ kf_bfly4()

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

Definition at line 46 of file kiss_fft.cpp.hpp.

52{
53 kiss_fft_cpx *tw1,*tw2,*tw3;
54 kiss_fft_cpx scratch[6];
55 size_t k=m;
56 const size_t m2=2*m;
57 const size_t m3=3*m;
58
59
60 tw3 = tw2 = tw1 = st->twiddles;
61
62 do {
63 C_FIXDIV(*Fout,4); C_FIXDIV(Fout[m],4); C_FIXDIV(Fout[m2],4); C_FIXDIV(Fout[m3],4);
64
65 C_MUL(scratch[0],Fout[m] , *tw1 );
66 C_MUL(scratch[1],Fout[m2] , *tw2 );
67 C_MUL(scratch[2],Fout[m3] , *tw3 );
68
69 C_SUB( scratch[5] , *Fout, scratch[1] );
70 C_ADDTO(*Fout, scratch[1]);
71 C_ADD( scratch[3] , scratch[0] , scratch[2] );
72 C_SUB( scratch[4] , scratch[0] , scratch[2] );
73 C_SUB( Fout[m2], *Fout, scratch[3] );
74 tw1 += fstride;
75 tw2 += fstride*2;
76 tw3 += fstride*3;
77 C_ADDTO( *Fout , scratch[3] );
78
79 if(st->inverse) {
80 Fout[m].r = scratch[5].r - scratch[4].i;
81 Fout[m].i = scratch[5].i + scratch[4].r;
82 Fout[m3].r = scratch[5].r + scratch[4].i;
83 Fout[m3].i = scratch[5].i - scratch[4].r;
84 }else{
85 Fout[m].r = scratch[5].r + scratch[4].i;
86 Fout[m].i = scratch[5].i - scratch[4].r;
87 Fout[m3].r = scratch[5].r - scratch[4].i;
88 Fout[m3].i = scratch[5].i + scratch[4].r;
89 }
90 ++Fout;
91 }while(--k);
92}
#define C_FIXDIV(c, div)
#define C_ADD(res, a, b)
#define C_ADDTO(res, a)
#define C_SUB(res, a, b)
#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_SUB, FL_NOEXCEPT, kiss_fft_cpx::i, and kiss_fft_cpx::r.

Referenced by kf_work().

+ Here is the caller graph for this function: