Bsoft  1.9
Bernard's software package
fn_9.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:38 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 9 */
27 
28 /*
29  * This function contains 80 FP additions, 40 FP multiplications,
30  * (or, 60 additions, 20 multiplications, 20 fused multiply/add),
31  * 30 stack variables, and 36 memory accesses
32  */
33 static const fftw_real K939692620 =
34 FFTW_KONST(+0.939692620785908384054109277324731469936208134);
35 static const fftw_real K342020143 =
36 FFTW_KONST(+0.342020143325668733044099614682259580763083368);
37 static const fftw_real K984807753 =
38 FFTW_KONST(+0.984807753012208059366743024589523013670643252);
39 static const fftw_real K173648177 =
40 FFTW_KONST(+0.173648177666930348851716626769314796000375677);
41 static const fftw_real K642787609 =
42 FFTW_KONST(+0.642787609686539326322643409907263432907559884);
43 static const fftw_real K766044443 =
44 FFTW_KONST(+0.766044443118978035202392650555416673935832457);
45 static const fftw_real K866025403 =
46 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
47 static const fftw_real K500000000 =
48 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
49 
50 /*
51  * Generator Id's :
52  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
53  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
54  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
55  */
56 
57 void fftw_no_twiddle_9(const fftw_complex *input, fftw_complex *output,
58  int istride, int ostride)
59 {
60  fftw_real tmp5;
61  fftw_real tmp17;
62  fftw_real tmp50;
63  fftw_real tmp20;
64  fftw_real tmp78;
65  fftw_real tmp53;
66  fftw_real tmp10;
67  fftw_real tmp26;
68  fftw_real tmp58;
69  fftw_real tmp74;
70  fftw_real tmp31;
71  fftw_real tmp59;
72  fftw_real tmp15;
73  fftw_real tmp37;
74  fftw_real tmp62;
75  fftw_real tmp75;
76  fftw_real tmp42;
77  fftw_real tmp61;
79  {
80  fftw_real tmp1;
81  fftw_real tmp2;
82  fftw_real tmp3;
83  fftw_real tmp4;
85  tmp1 = c_re(input[0]);
86  tmp2 = c_re(input[3 * istride]);
87  tmp3 = c_re(input[6 * istride]);
88  tmp4 = tmp2 + tmp3;
89  tmp5 = tmp1 + tmp4;
90  tmp17 = tmp1 - (K500000000 * tmp4);
91  tmp50 = K866025403 * (tmp3 - tmp2);
92  }
93  {
94  fftw_real tmp51;
95  fftw_real tmp18;
96  fftw_real tmp19;
97  fftw_real tmp52;
99  tmp51 = c_im(input[0]);
100  tmp18 = c_im(input[3 * istride]);
101  tmp19 = c_im(input[6 * istride]);
102  tmp52 = tmp18 + tmp19;
103  tmp20 = K866025403 * (tmp18 - tmp19);
104  tmp78 = tmp51 + tmp52;
105  tmp53 = tmp51 - (K500000000 * tmp52);
106  }
107  {
108  fftw_real tmp6;
109  fftw_real tmp28;
110  fftw_real tmp9;
111  fftw_real tmp27;
112  fftw_real tmp25;
113  fftw_real tmp29;
114  fftw_real tmp22;
115  fftw_real tmp30;
117  tmp6 = c_re(input[istride]);
118  tmp28 = c_im(input[istride]);
119  {
120  fftw_real tmp7;
121  fftw_real tmp8;
122  fftw_real tmp23;
123  fftw_real tmp24;
125  tmp7 = c_re(input[4 * istride]);
126  tmp8 = c_re(input[7 * istride]);
127  tmp9 = tmp7 + tmp8;
128  tmp27 = K866025403 * (tmp8 - tmp7);
129  tmp23 = c_im(input[4 * istride]);
130  tmp24 = c_im(input[7 * istride]);
131  tmp25 = K866025403 * (tmp23 - tmp24);
132  tmp29 = tmp23 + tmp24;
133  }
134  tmp10 = tmp6 + tmp9;
135  tmp22 = tmp6 - (K500000000 * tmp9);
136  tmp26 = tmp22 + tmp25;
137  tmp58 = tmp22 - tmp25;
138  tmp74 = tmp28 + tmp29;
139  tmp30 = tmp28 - (K500000000 * tmp29);
140  tmp31 = tmp27 + tmp30;
141  tmp59 = tmp30 - tmp27;
142  }
143  {
144  fftw_real tmp11;
145  fftw_real tmp39;
146  fftw_real tmp14;
147  fftw_real tmp38;
148  fftw_real tmp36;
149  fftw_real tmp40;
150  fftw_real tmp33;
151  fftw_real tmp41;
153  tmp11 = c_re(input[2 * istride]);
154  tmp39 = c_im(input[2 * istride]);
155  {
156  fftw_real tmp12;
157  fftw_real tmp13;
158  fftw_real tmp34;
159  fftw_real tmp35;
161  tmp12 = c_re(input[5 * istride]);
162  tmp13 = c_re(input[8 * istride]);
163  tmp14 = tmp12 + tmp13;
164  tmp38 = K866025403 * (tmp13 - tmp12);
165  tmp34 = c_im(input[5 * istride]);
166  tmp35 = c_im(input[8 * istride]);
167  tmp36 = K866025403 * (tmp34 - tmp35);
168  tmp40 = tmp34 + tmp35;
169  }
170  tmp15 = tmp11 + tmp14;
171  tmp33 = tmp11 - (K500000000 * tmp14);
172  tmp37 = tmp33 + tmp36;
173  tmp62 = tmp33 - tmp36;
174  tmp75 = tmp39 + tmp40;
175  tmp41 = tmp39 - (K500000000 * tmp40);
176  tmp42 = tmp38 + tmp41;
177  tmp61 = tmp41 - tmp38;
178  }
179  {
180  fftw_real tmp76;
181  fftw_real tmp16;
182  fftw_real tmp73;
183  fftw_real tmp77;
184  fftw_real tmp79;
185  fftw_real tmp80;
187  tmp76 = K866025403 * (tmp74 - tmp75);
188  tmp16 = tmp10 + tmp15;
189  tmp73 = tmp5 - (K500000000 * tmp16);
190  c_re(output[0]) = tmp5 + tmp16;
191  c_re(output[3 * ostride]) = tmp73 + tmp76;
192  c_re(output[6 * ostride]) = tmp73 - tmp76;
193  tmp77 = K866025403 * (tmp15 - tmp10);
194  tmp79 = tmp74 + tmp75;
195  tmp80 = tmp78 - (K500000000 * tmp79);
196  c_im(output[3 * ostride]) = tmp77 + tmp80;
197  c_im(output[6 * ostride]) = tmp80 - tmp77;
198  c_im(output[0]) = tmp78 + tmp79;
199  }
200  {
201  fftw_real tmp21;
202  fftw_real tmp54;
203  fftw_real tmp44;
204  fftw_real tmp49;
205  fftw_real tmp48;
206  fftw_real tmp55;
207  fftw_real tmp45;
208  fftw_real tmp56;
210  tmp21 = tmp17 + tmp20;
211  tmp54 = tmp50 + tmp53;
212  {
213  fftw_real tmp32;
214  fftw_real tmp43;
215  fftw_real tmp46;
216  fftw_real tmp47;
218  tmp32 = (K766044443 * tmp26) + (K642787609 * tmp31);
219  tmp43 = (K173648177 * tmp37) + (K984807753 * tmp42);
220  tmp44 = tmp32 + tmp43;
221  tmp49 = K866025403 * (tmp43 - tmp32);
222  tmp46 = (K766044443 * tmp31) - (K642787609 * tmp26);
223  tmp47 = (K173648177 * tmp42) - (K984807753 * tmp37);
224  tmp48 = K866025403 * (tmp46 - tmp47);
225  tmp55 = tmp46 + tmp47;
226  }
227  c_re(output[ostride]) = tmp21 + tmp44;
228  tmp45 = tmp21 - (K500000000 * tmp44);
229  c_re(output[7 * ostride]) = tmp45 - tmp48;
230  c_re(output[4 * ostride]) = tmp45 + tmp48;
231  c_im(output[ostride]) = tmp54 + tmp55;
232  tmp56 = tmp54 - (K500000000 * tmp55);
233  c_im(output[4 * ostride]) = tmp49 + tmp56;
234  c_im(output[7 * ostride]) = tmp56 - tmp49;
235  }
236  {
237  fftw_real tmp57;
238  fftw_real tmp69;
239  fftw_real tmp72;
240  fftw_real tmp66;
241  fftw_real tmp64;
242  fftw_real tmp65;
243  fftw_real tmp71;
244  fftw_real tmp70;
246  {
247  fftw_real tmp67;
248  fftw_real tmp68;
249  fftw_real tmp60;
250  fftw_real tmp63;
252  tmp57 = tmp17 - tmp20;
253  tmp67 = (K173648177 * tmp59) - (K984807753 * tmp58);
254  tmp68 = (K342020143 * tmp62) + (K939692620 * tmp61);
255  tmp69 = tmp67 - tmp68;
256  tmp72 = K866025403 * (tmp67 + tmp68);
257  tmp66 = tmp53 - tmp50;
258  tmp60 = (K173648177 * tmp58) + (K984807753 * tmp59);
259  tmp63 = (K342020143 * tmp61) - (K939692620 * tmp62);
260  tmp64 = tmp60 + tmp63;
261  tmp65 = K866025403 * (tmp63 - tmp60);
262  }
263  c_re(output[2 * ostride]) = tmp57 + tmp64;
264  tmp71 = tmp57 - (K500000000 * tmp64);
265  c_re(output[8 * ostride]) = tmp71 - tmp72;
266  c_re(output[5 * ostride]) = tmp71 + tmp72;
267  c_im(output[2 * ostride]) = tmp66 + tmp69;
268  tmp70 = tmp66 - (K500000000 * tmp69);
269  c_im(output[5 * ostride]) = tmp65 + tmp70;
270  c_im(output[8 * ostride]) = tmp70 - tmp65;
271  }
272 }
273 
275  "fftw_no_twiddle_9",
276  (void (*)()) fftw_no_twiddle_9,
277  9,
278  FFTW_FORWARD,
279  FFTW_NOTW,
280  199,
281  0,
282  (const int *) 0,
283 };
#define FFTW_KONST(x)
Definition: fftw-int.h:178
void fftw_no_twiddle_9(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fn_9.c:57
#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_9_desc
Definition: fn_9.c:274