diff peck_fft.c @ 5:c7237a7544eb

cleanup
author Peter Meerwald <p.meerwald@bct-electronic.com>
date Fri, 16 Sep 2011 15:08:29 +0200
parents 2d6c49fcafcb
children fee54f1878f7
line wrap: on
line diff
--- a/peck_fft.c	Fri Sep 16 14:04:19 2011 +0200
+++ b/peck_fft.c	Fri Sep 16 15:08:29 2011 +0200
@@ -19,15 +19,15 @@
  */
 
 static void kf_bfly2(
-    peck_fft_cpx * Fout,
+    peck_fft_cpx *Fout,
     const size_t fstride,
     const peck_fft_cfg st,
     int m) {
 
 //printf("kf_bfly2\n");
 
-    peck_fft_cpx * Fout2;
-    peck_fft_cpx * tw1 = st->twiddles;
+    peck_fft_cpx *Fout2;
+    peck_fft_cpx *tw1 = st->twiddles;
     peck_fft_cpx t;
     Fout2 = Fout + m;
     do {
@@ -109,7 +109,7 @@
 
 printf("kf_bfly3\n");
 
-     tw1=tw2=st->twiddles;
+     tw1 = tw2 = st->twiddles;
 
      do {
          C_FIXDIV(*Fout,3); C_FIXDIV(Fout[m],3); C_FIXDIV(Fout[m2],3);
@@ -156,11 +156,11 @@
 
 printf("kf_bfly5\n");
 
-    Fout0=Fout;
-    Fout1=Fout0+m;
-    Fout2=Fout0+2*m;
-    Fout3=Fout0+3*m;
-    Fout4=Fout0+4*m;
+    Fout0 = Fout;
+    Fout1 = Fout0 + m;
+    Fout2 = Fout0 + 2*m;
+    Fout3 = Fout0 + 3*m;
+    Fout4 = Fout0 + 4*m;
 
     tw=st->twiddles;
     for (u = 0; u < m; ++u) {
@@ -248,6 +248,7 @@
     const size_t fstride,
     int *factors,
     const peck_fft_cfg st) {
+    
     peck_fft_cpx *Fout_beg = Fout;
     const int p = *factors++; /* the radix */
     const int m = *factors++; /* stage's FFT length / p */
@@ -271,7 +272,7 @@
         } while ((Fout += m) != Fout_end);
     }
 
-    Fout=Fout_beg;
+    Fout = Fout_beg;
 
     // recombine the p smaller DFTs 
     switch (p) {

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.