Bsoft  1.9
Bernard's software package
fn_12.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:40 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 12 */
27 
28 /*
29  * This function contains 96 FP additions, 16 FP multiplications,
30  * (or, 88 additions, 8 multiplications, 8 fused multiply/add),
31  * 40 stack variables, and 48 memory accesses
32  */
33 static const fftw_real K866025403 =
34 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
35 static const fftw_real K500000000 =
36 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
37 
38 /*
39  * Generator Id's :
40  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
41  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
42  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
43  */
44 
45 void fftw_no_twiddle_12(const fftw_complex *input, fftw_complex *output,
46  int istride, int ostride)
47 {
48  fftw_real tmp5;
49  fftw_real tmp53;
50  fftw_real tmp36;
51  fftw_real tmp28;
52  fftw_real tmp35;
53  fftw_real tmp54;
54  fftw_real tmp10;
55  fftw_real tmp56;
56  fftw_real tmp39;
57  fftw_real tmp33;
58  fftw_real tmp38;
59  fftw_real tmp57;
60  fftw_real tmp16;
61  fftw_real tmp42;
62  fftw_real tmp72;
63  fftw_real tmp45;
64  fftw_real tmp92;
65  fftw_real tmp75;
66  fftw_real tmp21;
67  fftw_real tmp47;
68  fftw_real tmp77;
69  fftw_real tmp50;
70  fftw_real tmp93;
71  fftw_real tmp80;
73  {
74  fftw_real tmp1;
75  fftw_real tmp2;
76  fftw_real tmp3;
77  fftw_real tmp4;
79  tmp1 = c_re(input[0]);
80  tmp2 = c_re(input[4 * istride]);
81  tmp3 = c_re(input[8 * istride]);
82  tmp4 = tmp2 + tmp3;
83  tmp5 = tmp1 + tmp4;
84  tmp53 = tmp1 - (K500000000 * tmp4);
85  tmp36 = K866025403 * (tmp3 - tmp2);
86  }
87  {
88  fftw_real tmp24;
89  fftw_real tmp25;
90  fftw_real tmp26;
91  fftw_real tmp27;
93  tmp24 = c_im(input[0]);
94  tmp25 = c_im(input[4 * istride]);
95  tmp26 = c_im(input[8 * istride]);
96  tmp27 = tmp25 + tmp26;
97  tmp28 = tmp24 + tmp27;
98  tmp35 = tmp24 - (K500000000 * tmp27);
99  tmp54 = K866025403 * (tmp25 - tmp26);
100  }
101  {
102  fftw_real tmp6;
103  fftw_real tmp7;
104  fftw_real tmp8;
105  fftw_real tmp9;
107  tmp6 = c_re(input[6 * istride]);
108  tmp7 = c_re(input[10 * istride]);
109  tmp8 = c_re(input[2 * istride]);
110  tmp9 = tmp7 + tmp8;
111  tmp10 = tmp6 + tmp9;
112  tmp56 = tmp6 - (K500000000 * tmp9);
113  tmp39 = K866025403 * (tmp8 - tmp7);
114  }
115  {
116  fftw_real tmp29;
117  fftw_real tmp30;
118  fftw_real tmp31;
119  fftw_real tmp32;
121  tmp29 = c_im(input[6 * istride]);
122  tmp30 = c_im(input[10 * istride]);
123  tmp31 = c_im(input[2 * istride]);
124  tmp32 = tmp30 + tmp31;
125  tmp33 = tmp29 + tmp32;
126  tmp38 = tmp29 - (K500000000 * tmp32);
127  tmp57 = K866025403 * (tmp30 - tmp31);
128  }
129  {
130  fftw_real tmp12;
131  fftw_real tmp13;
132  fftw_real tmp14;
133  fftw_real tmp15;
135  tmp12 = c_re(input[3 * istride]);
136  tmp13 = c_re(input[7 * istride]);
137  tmp14 = c_re(input[11 * istride]);
138  tmp15 = tmp13 + tmp14;
139  tmp16 = tmp12 + tmp15;
140  tmp42 = tmp12 - (K500000000 * tmp15);
141  tmp72 = K866025403 * (tmp14 - tmp13);
142  }
143  {
144  fftw_real tmp73;
145  fftw_real tmp43;
146  fftw_real tmp44;
147  fftw_real tmp74;
149  tmp73 = c_im(input[3 * istride]);
150  tmp43 = c_im(input[7 * istride]);
151  tmp44 = c_im(input[11 * istride]);
152  tmp74 = tmp43 + tmp44;
153  tmp45 = K866025403 * (tmp43 - tmp44);
154  tmp92 = tmp73 + tmp74;
155  tmp75 = tmp73 - (K500000000 * tmp74);
156  }
157  {
158  fftw_real tmp17;
159  fftw_real tmp18;
160  fftw_real tmp19;
161  fftw_real tmp20;
163  tmp17 = c_re(input[9 * istride]);
164  tmp18 = c_re(input[istride]);
165  tmp19 = c_re(input[5 * istride]);
166  tmp20 = tmp18 + tmp19;
167  tmp21 = tmp17 + tmp20;
168  tmp47 = tmp17 - (K500000000 * tmp20);
169  tmp77 = K866025403 * (tmp19 - tmp18);
170  }
171  {
172  fftw_real tmp78;
173  fftw_real tmp48;
174  fftw_real tmp49;
175  fftw_real tmp79;
177  tmp78 = c_im(input[9 * istride]);
178  tmp48 = c_im(input[istride]);
179  tmp49 = c_im(input[5 * istride]);
180  tmp79 = tmp48 + tmp49;
181  tmp50 = K866025403 * (tmp48 - tmp49);
182  tmp93 = tmp78 + tmp79;
183  tmp80 = tmp78 - (K500000000 * tmp79);
184  }
185  {
186  fftw_real tmp11;
187  fftw_real tmp22;
188  fftw_real tmp23;
189  fftw_real tmp34;
191  tmp11 = tmp5 + tmp10;
192  tmp22 = tmp16 + tmp21;
193  c_re(output[6 * ostride]) = tmp11 - tmp22;
194  c_re(output[0]) = tmp11 + tmp22;
195  {
196  fftw_real tmp91;
197  fftw_real tmp94;
198  fftw_real tmp95;
199  fftw_real tmp96;
201  tmp91 = tmp5 - tmp10;
202  tmp94 = tmp92 - tmp93;
203  c_re(output[3 * ostride]) = tmp91 - tmp94;
204  c_re(output[9 * ostride]) = tmp91 + tmp94;
205  tmp95 = tmp28 + tmp33;
206  tmp96 = tmp92 + tmp93;
207  c_im(output[6 * ostride]) = tmp95 - tmp96;
208  c_im(output[0]) = tmp95 + tmp96;
209  }
210  tmp23 = tmp16 - tmp21;
211  tmp34 = tmp28 - tmp33;
212  c_im(output[3 * ostride]) = tmp23 + tmp34;
213  c_im(output[9 * ostride]) = tmp34 - tmp23;
214  {
215  fftw_real tmp63;
216  fftw_real tmp83;
217  fftw_real tmp82;
218  fftw_real tmp84;
219  fftw_real tmp66;
220  fftw_real tmp70;
221  fftw_real tmp69;
222  fftw_real tmp71;
224  {
225  fftw_real tmp61;
226  fftw_real tmp62;
227  fftw_real tmp76;
228  fftw_real tmp81;
230  tmp61 = tmp36 + tmp35;
231  tmp62 = tmp39 + tmp38;
232  tmp63 = tmp61 - tmp62;
233  tmp83 = tmp61 + tmp62;
234  tmp76 = tmp72 + tmp75;
235  tmp81 = tmp77 + tmp80;
236  tmp82 = tmp76 - tmp81;
237  tmp84 = tmp76 + tmp81;
238  }
239  {
240  fftw_real tmp64;
241  fftw_real tmp65;
242  fftw_real tmp67;
243  fftw_real tmp68;
245  tmp64 = tmp42 + tmp45;
246  tmp65 = tmp47 + tmp50;
247  tmp66 = tmp64 - tmp65;
248  tmp70 = tmp64 + tmp65;
249  tmp67 = tmp53 + tmp54;
250  tmp68 = tmp56 + tmp57;
251  tmp69 = tmp67 + tmp68;
252  tmp71 = tmp67 - tmp68;
253  }
254  c_im(output[ostride]) = tmp63 - tmp66;
255  c_im(output[7 * ostride]) = tmp63 + tmp66;
256  c_re(output[10 * ostride]) = tmp69 - tmp70;
257  c_re(output[4 * ostride]) = tmp69 + tmp70;
258  c_re(output[7 * ostride]) = tmp71 - tmp82;
259  c_re(output[ostride]) = tmp71 + tmp82;
260  c_im(output[10 * ostride]) = tmp83 - tmp84;
261  c_im(output[4 * ostride]) = tmp83 + tmp84;
262  }
263  {
264  fftw_real tmp41;
265  fftw_real tmp89;
266  fftw_real tmp88;
267  fftw_real tmp90;
268  fftw_real tmp52;
269  fftw_real tmp60;
270  fftw_real tmp59;
271  fftw_real tmp85;
273  {
274  fftw_real tmp37;
275  fftw_real tmp40;
276  fftw_real tmp86;
277  fftw_real tmp87;
279  tmp37 = tmp35 - tmp36;
280  tmp40 = tmp38 - tmp39;
281  tmp41 = tmp37 - tmp40;
282  tmp89 = tmp37 + tmp40;
283  tmp86 = tmp75 - tmp72;
284  tmp87 = tmp80 - tmp77;
285  tmp88 = tmp86 - tmp87;
286  tmp90 = tmp86 + tmp87;
287  }
288  {
289  fftw_real tmp46;
290  fftw_real tmp51;
291  fftw_real tmp55;
292  fftw_real tmp58;
294  tmp46 = tmp42 - tmp45;
295  tmp51 = tmp47 - tmp50;
296  tmp52 = tmp46 - tmp51;
297  tmp60 = tmp46 + tmp51;
298  tmp55 = tmp53 - tmp54;
299  tmp58 = tmp56 - tmp57;
300  tmp59 = tmp55 + tmp58;
301  tmp85 = tmp55 - tmp58;
302  }
303  c_im(output[5 * ostride]) = tmp41 - tmp52;
304  c_im(output[11 * ostride]) = tmp41 + tmp52;
305  c_re(output[2 * ostride]) = tmp59 - tmp60;
306  c_re(output[8 * ostride]) = tmp59 + tmp60;
307  c_re(output[11 * ostride]) = tmp85 - tmp88;
308  c_re(output[5 * ostride]) = tmp85 + tmp88;
309  c_im(output[2 * ostride]) = tmp89 - tmp90;
310  c_im(output[8 * ostride]) = tmp89 + tmp90;
311  }
312  }
313 }
314 
316  "fftw_no_twiddle_12",
317  (void (*)()) fftw_no_twiddle_12,
318  12,
319  FFTW_FORWARD,
320  FFTW_NOTW,
321  265,
322  0,
323  (const int *) 0,
324 };
void fftw_no_twiddle_12(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fn_12.c:45
#define FFTW_KONST(x)
Definition: fftw-int.h:178
#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_12_desc
Definition: fn_12.c:315