| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

ftw_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:07:39 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 -twiddle 9 */
27
28 /*
29 * This function contains 96 FP additions, 72 FP multiplications,
30 * (or, 60 additions, 36 multiplications, 36 fused multiply/add),
31 * 34 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 K500000000 =
46 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
47 static const fftw_real K866025403 =
48 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
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_twiddle_9(fftw_complex *A, const fftw_complex *W, int iostride,
58 int m, int dist)
59 {
60 int i;
61 fftw_complex *inout;
62 inout = A;
63 for (i = m; i > 0; i = i - 1, inout = inout + dist, W = W + 8) {
64 fftw_real tmp1;
65 fftw_real tmp99;
66 fftw_real tmp52;
67 fftw_real tmp98;
68 fftw_real tmp105;
69 fftw_real tmp104;
70 fftw_real tmp12;
71 fftw_real tmp49;
72 fftw_real tmp47;
73 fftw_real tmp69;
74 fftw_real tmp86;
75 fftw_real tmp95;
76 fftw_real tmp74;
77 fftw_real tmp85;
78 fftw_real tmp30;
79 fftw_real tmp58;
80 fftw_real tmp82;
81 fftw_real tmp94;
82 fftw_real tmp63;
83 fftw_real tmp83;
84 ASSERT_ALIGNED_DOUBLE;
85 {
86 fftw_real tmp6;
87 fftw_real tmp50;
88 fftw_real tmp11;
89 fftw_real tmp51;
90 ASSERT_ALIGNED_DOUBLE;
91 tmp1 = c_re(inout[0]);
92 tmp99 = c_im(inout[0]);
93 {
94 fftw_real tmp3;
95 fftw_real tmp5;
96 fftw_real tmp2;
97 fftw_real tmp4;
98 ASSERT_ALIGNED_DOUBLE;
99 tmp3 = c_re(inout[3 * iostride]);
100 tmp5 = c_im(inout[3 * iostride]);
101 tmp2 = c_re(W[2]);
102 tmp4 = c_im(W[2]);
103 tmp6 = (tmp2 * tmp3) - (tmp4 * tmp5);
104 tmp50 = (tmp4 * tmp3) + (tmp2 * tmp5);
105 }
106 {
107 fftw_real tmp8;
108 fftw_real tmp10;
109 fftw_real tmp7;
110 fftw_real tmp9;
111 ASSERT_ALIGNED_DOUBLE;
112 tmp8 = c_re(inout[6 * iostride]);
113 tmp10 = c_im(inout[6 * iostride]);
114 tmp7 = c_re(W[5]);
115 tmp9 = c_im(W[5]);
116 tmp11 = (tmp7 * tmp8) - (tmp9 * tmp10);
117 tmp51 = (tmp9 * tmp8) + (tmp7 * tmp10);
118 }
119 tmp52 = K866025403 * (tmp50 - tmp51);
120 tmp98 = tmp50 + tmp51;
121 tmp105 = tmp99 - (K500000000 * tmp98);
122 tmp104 = K866025403 * (tmp11 - tmp6);
123 tmp12 = tmp6 + tmp11;
124 tmp49 = tmp1 - (K500000000 * tmp12);
125 }
126 {
127 fftw_real tmp35;
128 fftw_real tmp71;
129 fftw_real tmp40;
130 fftw_real tmp66;
131 fftw_real tmp45;
132 fftw_real tmp67;
133 fftw_real tmp46;
134 fftw_real tmp72;
135 ASSERT_ALIGNED_DOUBLE;
136 {
137 fftw_real tmp32;
138 fftw_real tmp34;
139 fftw_real tmp31;
140 fftw_real tmp33;
141 ASSERT_ALIGNED_DOUBLE;
142 tmp32 = c_re(inout[2 * iostride]);
143 tmp34 = c_im(inout[2 * iostride]);
144 tmp31 = c_re(W[1]);
145 tmp33 = c_im(W[1]);
146 tmp35 = (tmp31 * tmp32) - (tmp33 * tmp34);
147 tmp71 = (tmp33 * tmp32) + (tmp31 * tmp34);
148 }
149 {
150 fftw_real tmp37;
151 fftw_real tmp39;
152 fftw_real tmp36;
153 fftw_real tmp38;
154 ASSERT_ALIGNED_DOUBLE;
155 tmp37 = c_re(inout[5 * iostride]);
156 tmp39 = c_im(inout[5 * iostride]);
157 tmp36 = c_re(W[4]);
158 tmp38 = c_im(W[4]);
159 tmp40 = (tmp36 * tmp37) - (tmp38 * tmp39);
160 tmp66 = (tmp38 * tmp37) + (tmp36 * tmp39);
161 }
162 {
163 fftw_real tmp42;
164 fftw_real tmp44;
165 fftw_real tmp41;
166 fftw_real tmp43;
167 ASSERT_ALIGNED_DOUBLE;
168 tmp42 = c_re(inout[8 * iostride]);
169 tmp44 = c_im(inout[8 * iostride]);
170 tmp41 = c_re(W[7]);
171 tmp43 = c_im(W[7]);
172 tmp45 = (tmp41 * tmp42) - (tmp43 * tmp44);
173 tmp67 = (tmp43 * tmp42) + (tmp41 * tmp44);
174 }
175 tmp46 = tmp40 + tmp45;
176 tmp72 = tmp66 + tmp67;
177 {
178 fftw_real tmp65;
179 fftw_real tmp68;
180 fftw_real tmp70;
181 fftw_real tmp73;
182 ASSERT_ALIGNED_DOUBLE;
183 tmp47 = tmp35 + tmp46;
184 tmp65 = tmp35 - (K500000000 * tmp46);
185 tmp68 = K866025403 * (tmp66 - tmp67);
186 tmp69 = tmp65 + tmp68;
187 tmp86 = tmp65 - tmp68;
188 tmp95 = tmp71 + tmp72;
189 tmp70 = K866025403 * (tmp45 - tmp40);
190 tmp73 = tmp71 - (K500000000 * tmp72);
191 tmp74 = tmp70 + tmp73;
192 tmp85 = tmp73 - tmp70;
193 }
194 }
195 {
196 fftw_real tmp18;
197 fftw_real tmp60;
198 fftw_real tmp23;
199 fftw_real tmp55;
200 fftw_real tmp28;
201 fftw_real tmp56;
202 fftw_real tmp29;
203 fftw_real tmp61;
204 ASSERT_ALIGNED_DOUBLE;
205 {
206 fftw_real tmp15;
207 fftw_real tmp17;
208 fftw_real tmp14;
209 fftw_real tmp16;
210 ASSERT_ALIGNED_DOUBLE;
211 tmp15 = c_re(inout[iostride]);
212 tmp17 = c_im(inout[iostride]);
213 tmp14 = c_re(W[0]);
214 tmp16 = c_im(W[0]);
215 tmp18 = (tmp14 * tmp15) - (tmp16 * tmp17);
216 tmp60 = (tmp16 * tmp15) + (tmp14 * tmp17);
217 }
218 {
219 fftw_real tmp20;
220 fftw_real tmp22;
221 fftw_real tmp19;
222 fftw_real tmp21;
223 ASSERT_ALIGNED_DOUBLE;
224 tmp20 = c_re(inout[4 * iostride]);
225 tmp22 = c_im(inout[4 * iostride]);
226 tmp19 = c_re(W[3]);
227 tmp21 = c_im(W[3]);
228 tmp23 = (tmp19 * tmp20) - (tmp21 * tmp22);
229 tmp55 = (tmp21 * tmp20) + (tmp19 * tmp22);
230 }
231 {
232 fftw_real tmp25;
233 fftw_real tmp27;
234 fftw_real tmp24;
235 fftw_real tmp26;
236 ASSERT_ALIGNED_DOUBLE;
237 tmp25 = c_re(inout[7 * iostride]);
238 tmp27 = c_im(inout[7 * iostride]);
239 tmp24 = c_re(W[6]);
240 tmp26 = c_im(W[6]);
241 tmp28 = (tmp24 * tmp25) - (tmp26 * tmp27);
242 tmp56 = (tmp26 * tmp25) + (tmp24 * tmp27);
243 }
244 tmp29 = tmp23 + tmp28;
245 tmp61 = tmp55 + tmp56;
246 {
247 fftw_real tmp54;
248 fftw_real tmp57;
249 fftw_real tmp59;
250 fftw_real tmp62;
251 ASSERT_ALIGNED_DOUBLE;
252 tmp30 = tmp18 + tmp29;
253 tmp54 = tmp18 - (K500000000 * tmp29);
254 tmp57 = K866025403 * (tmp55 - tmp56);
255 tmp58 = tmp54 + tmp57;
256 tmp82 = tmp54 - tmp57;
257 tmp94 = tmp60 + tmp61;
258 tmp59 = K866025403 * (tmp28 - tmp23);
259 tmp62 = tmp60 - (K500000000 * tmp61);
260 tmp63 = tmp59 + tmp62;
261 tmp83 = tmp62 - tmp59;
262 }
263 }
264 {
265 fftw_real tmp96;
266 fftw_real tmp13;
267 fftw_real tmp48;
268 fftw_real tmp93;
269 ASSERT_ALIGNED_DOUBLE;
270 tmp96 = K866025403 * (tmp94 - tmp95);
271 tmp13 = tmp1 + tmp12;
272 tmp48 = tmp30 + tmp47;
273 tmp93 = tmp13 - (K500000000 * tmp48);
274 c_re(inout[0]) = tmp13 + tmp48;
275 c_re(inout[3 * iostride]) = tmp93 + tmp96;
276 c_re(inout[6 * iostride]) = tmp93 - tmp96;
277 }
278 {
279 fftw_real tmp101;
280 fftw_real tmp97;
281 fftw_real tmp100;
282 fftw_real tmp102;
283 ASSERT_ALIGNED_DOUBLE;
284 tmp101 = K866025403 * (tmp47 - tmp30);
285 tmp97 = tmp94 + tmp95;
286 tmp100 = tmp98 + tmp99;
287 tmp102 = tmp100 - (K500000000 * tmp97);
288 c_im(inout[0]) = tmp97 + tmp100;
289 c_im(inout[6 * iostride]) = tmp102 - tmp101;
290 c_im(inout[3 * iostride]) = tmp101 + tmp102;
291 }
292 {
293 fftw_real tmp53;
294 fftw_real tmp106;
295 fftw_real tmp76;
296 fftw_real tmp107;
297 fftw_real tmp80;
298 fftw_real tmp103;
299 fftw_real tmp77;
300 fftw_real tmp108;
301 ASSERT_ALIGNED_DOUBLE;
302 tmp53 = tmp49 + tmp52;
303 tmp106 = tmp104 + tmp105;
304 {
305 fftw_real tmp64;
306 fftw_real tmp75;
307 fftw_real tmp78;
308 fftw_real tmp79;
309 ASSERT_ALIGNED_DOUBLE;
310 tmp64 = (K766044443 * tmp58) + (K642787609 * tmp63);
311 tmp75 = (K173648177 * tmp69) + (K984807753 * tmp74);
312 tmp76 = tmp64 + tmp75;
313 tmp107 = K866025403 * (tmp75 - tmp64);
314 tmp78 = (K766044443 * tmp63) - (K642787609 * tmp58);
315 tmp79 = (K173648177 * tmp74) - (K984807753 * tmp69);
316 tmp80 = K866025403 * (tmp78 - tmp79);
317 tmp103 = tmp78 + tmp79;
318 }
319 c_re(inout[iostride]) = tmp53 + tmp76;
320 tmp77 = tmp53 - (K500000000 * tmp76);
321 c_re(inout[7 * iostride]) = tmp77 - tmp80;
322 c_re(inout[4 * iostride]) = tmp77 + tmp80;
323 c_im(inout[iostride]) = tmp103 + tmp106;
324 tmp108 = tmp106 - (K500000000 * tmp103);
325 c_im(inout[4 * iostride]) = tmp107 + tmp108;
326 c_im(inout[7 * iostride]) = tmp108 - tmp107;
327 }
328 {
329 fftw_real tmp81;
330 fftw_real tmp110;
331 fftw_real tmp88;
332 fftw_real tmp111;
333 fftw_real tmp92;
334 fftw_real tmp109;
335 fftw_real tmp89;
336 fftw_real tmp112;
337 ASSERT_ALIGNED_DOUBLE;
338 tmp81 = tmp49 - tmp52;
339 tmp110 = tmp105 - tmp104;
340 {
341 fftw_real tmp84;
342 fftw_real tmp87;
343 fftw_real tmp90;
344 fftw_real tmp91;
345 ASSERT_ALIGNED_DOUBLE;
346 tmp84 = (K173648177 * tmp82) + (K984807753 * tmp83);
347 tmp87 = (K342020143 * tmp85) - (K939692620 * tmp86);
348 tmp88 = tmp84 + tmp87;
349 tmp111 = K866025403 * (tmp87 - tmp84);
350 tmp90 = (K173648177 * tmp83) - (K984807753 * tmp82);
351 tmp91 = (K342020143 * tmp86) + (K939692620 * tmp85);
352 tmp92 = K866025403 * (tmp90 + tmp91);
353 tmp109 = tmp90 - tmp91;
354 }
355 c_re(inout[2 * iostride]) = tmp81 + tmp88;
356 tmp89 = tmp81 - (K500000000 * tmp88);
357 c_re(inout[8 * iostride]) = tmp89 - tmp92;
358 c_re(inout[5 * iostride]) = tmp89 + tmp92;
359 c_im(inout[2 * iostride]) = tmp109 + tmp110;
360 tmp112 = tmp110 - (K500000000 * tmp109);
361 c_im(inout[5 * iostride]) = tmp111 + tmp112;
362 c_im(inout[8 * iostride]) = tmp112 - tmp111;
363 }
364 }
365 }
366
367 static const int twiddle_order[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
368 fftw_codelet_desc fftw_twiddle_9_desc = {
369 "fftw_twiddle_9",
370 (void (*)()) fftw_twiddle_9,
371 9,
372 FFTW_FORWARD,
373 FFTW_TWIDDLE,
374 198,
375 8,
376 twiddle_order,
377 };
fftw_codelet_desc
Definition: fftw.h:126
fftw-int.h
fftw_complex
Definition: fftw.h:57
FFTW_KONST
#define FFTW_KONST(x)
Definition: fftw-int.h:178
fftw.h
FFTW_TWIDDLE
Definition: fftw.h:121
fftw_twiddle_9
void fftw_twiddle_9(fftw_complex *A, const fftw_complex *W, int iostride, int m, int dist)
Definition: ftw_9.c:57
c_re
#define c_re(c)
Definition: fftw.h:60
ASSERT_ALIGNED_DOUBLE
#define ASSERT_ALIGNED_DOUBLE
Definition: fftw-int.h:236
c_im
#define c_im(c)
Definition: fftw.h:61
fftw_real
float fftw_real
Definition: fftw.h:49
fftw_twiddle_9_desc
fftw_codelet_desc fftw_twiddle_9_desc
Definition: ftw_9.c:368
FFTW_FORWARD
Definition: fftw.h:64