Bsoft  1.9
Bernard's software package
fni_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:06:36 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 -notwiddleinv 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 fftwi_no_twiddle_12(const fftw_complex *input, fftw_complex *output,
46  int istride, int ostride)
47 {
48  fftw_real tmp5;
49  fftw_real tmp35;
50  fftw_real tmp57;
51  fftw_real tmp27;
52  fftw_real tmp58;
53  fftw_real tmp36;
54  fftw_real tmp10;
55  fftw_real tmp38;
56  fftw_real tmp60;
57  fftw_real tmp32;
58  fftw_real tmp61;
59  fftw_real tmp39;
60  fftw_real tmp16;
61  fftw_real tmp82;
62  fftw_real tmp42;
63  fftw_real tmp47;
64  fftw_real tmp76;
65  fftw_real tmp83;
66  fftw_real tmp21;
67  fftw_real tmp85;
68  fftw_real tmp49;
69  fftw_real tmp54;
70  fftw_real tmp77;
71  fftw_real tmp86;
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  tmp35 = tmp1 - (K500000000 * tmp4);
85  tmp57 = K866025403 * (tmp2 - tmp3);
86  }
87  {
88  fftw_real tmp23;
89  fftw_real tmp24;
90  fftw_real tmp25;
91  fftw_real tmp26;
93  tmp23 = c_im(input[0]);
94  tmp24 = c_im(input[4 * istride]);
95  tmp25 = c_im(input[8 * istride]);
96  tmp26 = tmp24 + tmp25;
97  tmp27 = tmp23 + tmp26;
98  tmp58 = tmp23 - (K500000000 * tmp26);
99  tmp36 = K866025403 * (tmp25 - tmp24);
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  tmp38 = tmp6 - (K500000000 * tmp9);
113  tmp60 = K866025403 * (tmp7 - tmp8);
114  }
115  {
116  fftw_real tmp28;
117  fftw_real tmp29;
118  fftw_real tmp30;
119  fftw_real tmp31;
121  tmp28 = c_im(input[6 * istride]);
122  tmp29 = c_im(input[10 * istride]);
123  tmp30 = c_im(input[2 * istride]);
124  tmp31 = tmp29 + tmp30;
125  tmp32 = tmp28 + tmp31;
126  tmp61 = tmp28 - (K500000000 * tmp31);
127  tmp39 = K866025403 * (tmp30 - tmp29);
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  tmp82 = tmp12 - (K500000000 * tmp15);
141  tmp42 = K866025403 * (tmp13 - tmp14);
142  }
143  {
144  fftw_real tmp43;
145  fftw_real tmp44;
146  fftw_real tmp45;
147  fftw_real tmp46;
149  tmp43 = c_im(input[3 * istride]);
150  tmp44 = c_im(input[7 * istride]);
151  tmp45 = c_im(input[11 * istride]);
152  tmp46 = tmp44 + tmp45;
153  tmp47 = tmp43 - (K500000000 * tmp46);
154  tmp76 = tmp43 + tmp46;
155  tmp83 = K866025403 * (tmp45 - tmp44);
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  tmp85 = tmp17 - (K500000000 * tmp20);
169  tmp49 = K866025403 * (tmp18 - tmp19);
170  }
171  {
172  fftw_real tmp50;
173  fftw_real tmp51;
174  fftw_real tmp52;
175  fftw_real tmp53;
177  tmp50 = c_im(input[9 * istride]);
178  tmp51 = c_im(input[istride]);
179  tmp52 = c_im(input[5 * istride]);
180  tmp53 = tmp51 + tmp52;
181  tmp54 = tmp50 - (K500000000 * tmp53);
182  tmp77 = tmp50 + tmp53;
183  tmp86 = K866025403 * (tmp52 - tmp51);
184  }
185  {
186  fftw_real tmp11;
187  fftw_real tmp22;
188  fftw_real tmp33;
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 tmp75;
197  fftw_real tmp78;
198  fftw_real tmp79;
199  fftw_real tmp80;
201  tmp75 = tmp5 - tmp10;
202  tmp78 = tmp76 - tmp77;
203  c_re(output[9 * ostride]) = tmp75 - tmp78;
204  c_re(output[3 * ostride]) = tmp75 + tmp78;
205  tmp79 = tmp27 + tmp32;
206  tmp80 = tmp76 + tmp77;
207  c_im(output[6 * ostride]) = tmp79 - tmp80;
208  c_im(output[0]) = tmp79 + tmp80;
209  }
210  tmp33 = tmp27 - tmp32;
211  tmp34 = tmp16 - tmp21;
212  c_im(output[3 * ostride]) = tmp33 - tmp34;
213  c_im(output[9 * ostride]) = tmp34 + tmp33;
214  {
215  fftw_real tmp67;
216  fftw_real tmp89;
217  fftw_real tmp88;
218  fftw_real tmp90;
219  fftw_real tmp70;
220  fftw_real tmp74;
221  fftw_real tmp73;
222  fftw_real tmp81;
224  {
225  fftw_real tmp65;
226  fftw_real tmp66;
227  fftw_real tmp84;
228  fftw_real tmp87;
230  tmp65 = tmp35 - tmp36;
231  tmp66 = tmp38 - tmp39;
232  tmp67 = tmp65 - tmp66;
233  tmp89 = tmp65 + tmp66;
234  tmp84 = tmp82 - tmp83;
235  tmp87 = tmp85 - tmp86;
236  tmp88 = tmp84 - tmp87;
237  tmp90 = tmp84 + tmp87;
238  }
239  {
240  fftw_real tmp68;
241  fftw_real tmp69;
242  fftw_real tmp71;
243  fftw_real tmp72;
245  tmp68 = tmp47 - tmp42;
246  tmp69 = tmp54 - tmp49;
247  tmp70 = tmp68 - tmp69;
248  tmp74 = tmp68 + tmp69;
249  tmp71 = tmp58 - tmp57;
250  tmp72 = tmp61 - tmp60;
251  tmp73 = tmp71 + tmp72;
252  tmp81 = tmp71 - tmp72;
253  }
254  c_re(output[5 * ostride]) = tmp67 - tmp70;
255  c_re(output[11 * ostride]) = tmp67 + tmp70;
256  c_im(output[2 * ostride]) = tmp73 - tmp74;
257  c_im(output[8 * ostride]) = tmp73 + tmp74;
258  c_im(output[11 * ostride]) = tmp81 - tmp88;
259  c_im(output[5 * ostride]) = tmp81 + tmp88;
260  c_re(output[2 * ostride]) = tmp89 - tmp90;
261  c_re(output[8 * ostride]) = tmp89 + tmp90;
262  }
263  {
264  fftw_real tmp41;
265  fftw_real tmp95;
266  fftw_real tmp94;
267  fftw_real tmp96;
268  fftw_real tmp56;
269  fftw_real tmp64;
270  fftw_real tmp63;
271  fftw_real tmp91;
273  {
274  fftw_real tmp37;
275  fftw_real tmp40;
276  fftw_real tmp92;
277  fftw_real tmp93;
279  tmp37 = tmp35 + tmp36;
280  tmp40 = tmp38 + tmp39;
281  tmp41 = tmp37 - tmp40;
282  tmp95 = tmp37 + tmp40;
283  tmp92 = tmp82 + tmp83;
284  tmp93 = tmp85 + tmp86;
285  tmp94 = tmp92 - tmp93;
286  tmp96 = tmp92 + tmp93;
287  }
288  {
289  fftw_real tmp48;
290  fftw_real tmp55;
291  fftw_real tmp59;
292  fftw_real tmp62;
294  tmp48 = tmp42 + tmp47;
295  tmp55 = tmp49 + tmp54;
296  tmp56 = tmp48 - tmp55;
297  tmp64 = tmp48 + tmp55;
298  tmp59 = tmp57 + tmp58;
299  tmp62 = tmp60 + tmp61;
300  tmp63 = tmp59 + tmp62;
301  tmp91 = tmp59 - tmp62;
302  }
303  c_re(output[ostride]) = tmp41 - tmp56;
304  c_re(output[7 * ostride]) = tmp41 + tmp56;
305  c_im(output[10 * ostride]) = tmp63 - tmp64;
306  c_im(output[4 * ostride]) = tmp63 + tmp64;
307  c_im(output[7 * ostride]) = tmp91 - tmp94;
308  c_im(output[ostride]) = tmp91 + tmp94;
309  c_re(output[10 * ostride]) = tmp95 - tmp96;
310  c_re(output[4 * ostride]) = tmp95 + tmp96;
311  }
312  }
313 }
314 
316  "fftwi_no_twiddle_12",
317  (void (*)()) fftwi_no_twiddle_12,
318  12,
320  FFTW_NOTW,
321  276,
322  0,
323  (const int *) 0,
324 };
#define FFTW_KONST(x)
Definition: fftw-int.h:178
void fftwi_no_twiddle_12(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fni_12.c:45
fftw_codelet_desc fftwi_no_twiddle_12_desc
Definition: fni_12.c:315
#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