Bsoft  1.9
Bernard's software package
fn_7.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-1999, 2003 Massachusetts Institute of Technology
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  */
19 
20 /* This file was automatically generated --- DO NOT EDIT */
21 /* Generated on Mon Mar 24 02:05:37 EST 2003 */
22 
23 #include "fftw-int.h"
24 #include "fftw.h"
25 
26 /* Generated by: /homee/stevenj/cvs/fftw/gensrc/genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -notwiddle 7 */
27 
28 /*
29  * This function contains 60 FP additions, 36 FP multiplications,
30  * (or, 60 additions, 36 multiplications, 0 fused multiply/add),
31  * 22 stack variables, and 28 memory accesses
32  */
33 static const fftw_real K222520933 =
34 FFTW_KONST(+0.222520933956314404288902564496794759466355569);
35 static const fftw_real K900968867 =
36 FFTW_KONST(+0.900968867902419126236102319507445051165919162);
37 static const fftw_real K623489801 =
38 FFTW_KONST(+0.623489801858733530525004884004239810632274731);
39 static const fftw_real K781831482 =
40 FFTW_KONST(+0.781831482468029808708444526674057750232334519);
41 static const fftw_real K433883739 =
42 FFTW_KONST(+0.433883739117558120475768332848358754609990728);
43 static const fftw_real K974927912 =
44 FFTW_KONST(+0.974927912181823607018131682993931217232785801);
45 
46 /*
47  * Generator Id's :
48  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
49  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
50  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
51  */
52 
53 void fftw_no_twiddle_7(const fftw_complex *input, fftw_complex *output,
54  int istride, int ostride)
55 {
56  fftw_real tmp1;
57  fftw_real tmp31;
58  fftw_real tmp4;
59  fftw_real tmp26;
60  fftw_real tmp14;
61  fftw_real tmp33;
62  fftw_real tmp7;
63  fftw_real tmp28;
64  fftw_real tmp20;
65  fftw_real tmp30;
66  fftw_real tmp10;
67  fftw_real tmp27;
68  fftw_real tmp17;
69  fftw_real tmp32;
71  tmp1 = c_re(input[0]);
72  tmp31 = c_im(input[0]);
73  {
74  fftw_real tmp2;
75  fftw_real tmp3;
76  fftw_real tmp12;
77  fftw_real tmp13;
79  tmp2 = c_re(input[istride]);
80  tmp3 = c_re(input[6 * istride]);
81  tmp4 = tmp2 + tmp3;
82  tmp26 = tmp3 - tmp2;
83  tmp12 = c_im(input[istride]);
84  tmp13 = c_im(input[6 * istride]);
85  tmp14 = tmp12 - tmp13;
86  tmp33 = tmp12 + tmp13;
87  }
88  {
89  fftw_real tmp5;
90  fftw_real tmp6;
91  fftw_real tmp18;
92  fftw_real tmp19;
94  tmp5 = c_re(input[2 * istride]);
95  tmp6 = c_re(input[5 * istride]);
96  tmp7 = tmp5 + tmp6;
97  tmp28 = tmp6 - tmp5;
98  tmp18 = c_im(input[2 * istride]);
99  tmp19 = c_im(input[5 * istride]);
100  tmp20 = tmp18 - tmp19;
101  tmp30 = tmp18 + tmp19;
102  }
103  {
104  fftw_real tmp8;
105  fftw_real tmp9;
106  fftw_real tmp15;
107  fftw_real tmp16;
109  tmp8 = c_re(input[3 * istride]);
110  tmp9 = c_re(input[4 * istride]);
111  tmp10 = tmp8 + tmp9;
112  tmp27 = tmp9 - tmp8;
113  tmp15 = c_im(input[3 * istride]);
114  tmp16 = c_im(input[4 * istride]);
115  tmp17 = tmp15 - tmp16;
116  tmp32 = tmp15 + tmp16;
117  }
118  {
119  fftw_real tmp23;
120  fftw_real tmp22;
121  fftw_real tmp35;
122  fftw_real tmp36;
124  c_re(output[0]) = tmp1 + tmp4 + tmp7 + tmp10;
125  tmp23 =
126  (K974927912 * tmp14) - (K433883739 * tmp20) -
127  (K781831482 * tmp17);
128  tmp22 =
129  tmp1 + (K623489801 * tmp10) - (K900968867 * tmp7) -
130  (K222520933 * tmp4);
131  c_re(output[5 * ostride]) = tmp22 - tmp23;
132  c_re(output[2 * ostride]) = tmp22 + tmp23;
133  {
134  fftw_real tmp25;
135  fftw_real tmp24;
136  fftw_real tmp21;
137  fftw_real tmp11;
139  tmp25 =
140  (K781831482 * tmp14) + (K433883739 * tmp17) +
141  (K974927912 * tmp20);
142  tmp24 =
143  tmp1 + (K623489801 * tmp4) - (K900968867 * tmp10) -
144  (K222520933 * tmp7);
145  c_re(output[6 * ostride]) = tmp24 - tmp25;
146  c_re(output[ostride]) = tmp24 + tmp25;
147  tmp21 =
148  (K433883739 * tmp14) + (K974927912 * tmp17) -
149  (K781831482 * tmp20);
150  tmp11 =
151  tmp1 + (K623489801 * tmp7) - (K222520933 * tmp10) -
152  (K900968867 * tmp4);
153  c_re(output[4 * ostride]) = tmp11 - tmp21;
154  c_re(output[3 * ostride]) = tmp11 + tmp21;
155  }
156  c_im(output[0]) = tmp33 + tmp32 + tmp30 + tmp31;
157  tmp35 =
158  (K781831482 * tmp26) + (K974927912 * tmp28) +
159  (K433883739 * tmp27);
160  tmp36 =
161  (K623489801 * tmp33) + tmp31 - (K222520933 * tmp30) -
162  (K900968867 * tmp32);
163  c_im(output[ostride]) = tmp35 + tmp36;
164  c_im(output[6 * ostride]) = tmp36 - tmp35;
165  {
166  fftw_real tmp29;
167  fftw_real tmp34;
168  fftw_real tmp37;
169  fftw_real tmp38;
171  tmp29 =
172  (K433883739 * tmp26) + (K974927912 * tmp27) -
173  (K781831482 * tmp28);
174  tmp34 =
175  (K623489801 * tmp30) + tmp31 - (K222520933 * tmp32) -
176  (K900968867 * tmp33);
177  c_im(output[3 * ostride]) = tmp29 + tmp34;
178  c_im(output[4 * ostride]) = tmp34 - tmp29;
179  tmp37 =
180  (K974927912 * tmp26) - (K781831482 * tmp27) -
181  (K433883739 * tmp28);
182  tmp38 =
183  (K623489801 * tmp32) + tmp31 - (K900968867 * tmp30) -
184  (K222520933 * tmp33);
185  c_im(output[2 * ostride]) = tmp37 + tmp38;
186  c_im(output[5 * ostride]) = tmp38 - tmp37;
187  }
188  }
189 }
190 
192  "fftw_no_twiddle_7",
193  (void (*)()) fftw_no_twiddle_7,
194  7,
195  FFTW_FORWARD,
196  FFTW_NOTW,
197  155,
198  0,
199  (const int *) 0,
200 };
#define FFTW_KONST(x)
Definition: fftw-int.h:178
void fftw_no_twiddle_7(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fn_7.c:53
#define c_re(c)
Definition: fftw.h:60
#define ASSERT_ALIGNED_DOUBLE
Definition: fftw-int.h:236
#define c_im(c)
Definition: fftw.h:61
float fftw_real
Definition: fftw.h:49
fftw_codelet_desc fftw_no_twiddle_7_desc
Definition: fn_7.c:191