mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-06-04 01:28:23 -04:00
slightly faster
This commit is contained in:
parent
1486d89291
commit
3a5791f203
@ -317,14 +317,15 @@ void bfly_generic(
|
|||||||
for ( q=1 ; q<p ; ++q ) {
|
for ( q=1 ; q<p ; ++q ) {
|
||||||
C_MUL( scratch[q] , Fout[ m*q ] , tw[u*fstride*q] );
|
C_MUL( scratch[q] , Fout[ m*q ] , tw[u*fstride*q] );
|
||||||
Fout[ m*q ] = scratch[0];
|
Fout[ m*q ] = scratch[0];
|
||||||
C_ADDTO(*Fout , scratch[q] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( q=1; q<p ; ++q ) {
|
for ( q=1; q<p ; ++q ) {
|
||||||
int twidx = q*fsm;
|
|
||||||
|
|
||||||
|
C_ADDTO(*Fout , scratch[q] );
|
||||||
Foutlo=Fout;
|
Foutlo=Fout;
|
||||||
Fouthi=Fout + mp;
|
Fouthi=Fout + mp;
|
||||||
|
|
||||||
|
|
||||||
for ( d=1; d<=halfp;++d) {
|
for ( d=1; d<=halfp;++d) {
|
||||||
Foutlo += m;
|
Foutlo += m;
|
||||||
@ -369,7 +370,7 @@ void fft_work(
|
|||||||
|
|
||||||
switch (p) {
|
switch (p) {
|
||||||
case 2: bfly2(Fout,fstride,st,m); break;
|
case 2: bfly2(Fout,fstride,st,m); break;
|
||||||
#if 0
|
#if 0
|
||||||
case 3: bfly3(Fout,fstride,st,m); break;
|
case 3: bfly3(Fout,fstride,st,m); break;
|
||||||
#endif
|
#endif
|
||||||
case 4: bfly4(Fout,fstride,st,m); break;
|
case 4: bfly4(Fout,fstride,st,m); break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user