From 26ce35083d4001447d8373f3379521c1cb102671 Mon Sep 17 00:00:00 2001 From: Mark Borgerding Date: Tue, 3 Feb 2004 01:37:19 +0000 Subject: [PATCH] ./bm_kiss_float -x 40000 -n 1800 from cputime=5.840 to cputime=5.830 (yeah yeah, I know its not great) --- kiss_fft.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/kiss_fft.c b/kiss_fft.c index 7f36687..7674024 100644 --- a/kiss_fft.c +++ b/kiss_fft.c @@ -251,24 +251,20 @@ void kf_work( ) { kiss_fft_cpx * Fout_beg=Fout; - kiss_fft_cpx * Fout_end; - int m,p; - - p=*factors++; /* the radix */ - m=*factors++; /* stage's fft length/p */ - Fout_end = Fout + p*m; + const int p=*factors++; /* the radix */ + const int m=*factors++; /* stage's fft length/p */ + const kiss_fft_cpx * Fout_end = Fout + p*m; if (m==1) { do{ - *Fout++ = *f; + *Fout = *f; f += fstride*in_stride; - }while(Fout != Fout_end ); + }while(++Fout != Fout_end ); }else{ do{ kf_work( Fout , f, fstride*p, in_stride, factors,st); f += fstride*in_stride; - Fout += m; - }while(Fout != Fout_end ); + }while( (Fout += m) != Fout_end ); } Fout=Fout_beg;