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