# HG changeset patch
# User Peter Meerwald
# Date 1316178509 -7200
# Node ID c7237a7544eb7165ceaf3a8028156001ee42095a
# Parent 2d6c49fcafcbe4b62cf1c0ad0ec6a7875f429938
cleanup
diff -r 2d6c49fcafcb -r c7237a7544eb peck_fft.c
--- 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) {