| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

fn_15.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:42 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 15 */
27
28 /*
29 * This function contains 156 FP additions, 56 FP multiplications,
30 * (or, 128 additions, 28 multiplications, 28 fused multiply/add),
31 * 62 stack variables, and 60 memory accesses
32 */
33 static const fftw_real K587785252 =
34 FFTW_KONST(+0.587785252292473129168705954639072768597652438);
35 static const fftw_real K951056516 =
36 FFTW_KONST(+0.951056516295153572116439333379382143405698634);
37 static const fftw_real K250000000 =
38 FFTW_KONST(+0.250000000000000000000000000000000000000000000);
39 static const fftw_real K559016994 =
40 FFTW_KONST(+0.559016994374947424102293417182819058860154590);
41 static const fftw_real K500000000 =
42 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
43 static const fftw_real K866025403 =
44 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
45
46 /*
47 * Generator Id's :
48 * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
49 * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
50 * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
51 */
52
53 void fftw_no_twiddle_15(const fftw_complex *input, fftw_complex *output,
54 int istride, int ostride)
55 {
56 fftw_real tmp5;
57 fftw_real tmp33;
58 fftw_real tmp57;
59 fftw_real tmp145;
60 fftw_real tmp124;
61 fftw_real tmp136;
62 fftw_real tmp21;
63 fftw_real tmp26;
64 fftw_real tmp27;
65 fftw_real tmp49;
66 fftw_real tmp54;
67 fftw_real tmp55;
68 fftw_real tmp108;
69 fftw_real tmp109;
70 fftw_real tmp147;
71 fftw_real tmp61;
72 fftw_real tmp62;
73 fftw_real tmp63;
74 fftw_real tmp96;
75 fftw_real tmp97;
76 fftw_real tmp138;
77 fftw_real tmp83;
78 fftw_real tmp88;
79 fftw_real tmp118;
80 fftw_real tmp10;
81 fftw_real tmp15;
82 fftw_real tmp16;
83 fftw_real tmp38;
84 fftw_real tmp43;
85 fftw_real tmp44;
86 fftw_real tmp111;
87 fftw_real tmp112;
88 fftw_real tmp146;
89 fftw_real tmp58;
90 fftw_real tmp59;
91 fftw_real tmp60;
92 fftw_real tmp99;
93 fftw_real tmp100;
94 fftw_real tmp137;
95 fftw_real tmp72;
96 fftw_real tmp77;
97 fftw_real tmp117;
98 ASSERT_ALIGNED_DOUBLE;
99 {
100 fftw_real tmp1;
101 fftw_real tmp121;
102 fftw_real tmp4;
103 fftw_real tmp120;
104 fftw_real tmp32;
105 fftw_real tmp122;
106 fftw_real tmp29;
107 fftw_real tmp123;
108 ASSERT_ALIGNED_DOUBLE;
109 tmp1 = c_re(input[0]);
110 tmp121 = c_im(input[0]);
111 {
112 fftw_real tmp2;
113 fftw_real tmp3;
114 fftw_real tmp30;
115 fftw_real tmp31;
116 ASSERT_ALIGNED_DOUBLE;
117 tmp2 = c_re(input[5 * istride]);
118 tmp3 = c_re(input[10 * istride]);
119 tmp4 = tmp2 + tmp3;
120 tmp120 = K866025403 * (tmp3 - tmp2);
121 tmp30 = c_im(input[5 * istride]);
122 tmp31 = c_im(input[10 * istride]);
123 tmp32 = K866025403 * (tmp30 - tmp31);
124 tmp122 = tmp30 + tmp31;
125 }
126 tmp5 = tmp1 + tmp4;
127 tmp29 = tmp1 - (K500000000 * tmp4);
128 tmp33 = tmp29 - tmp32;
129 tmp57 = tmp29 + tmp32;
130 tmp145 = tmp122 + tmp121;
131 tmp123 = tmp121 - (K500000000 * tmp122);
132 tmp124 = tmp120 + tmp123;
133 tmp136 = tmp123 - tmp120;
134 }
135 {
136 fftw_real tmp17;
137 fftw_real tmp20;
138 fftw_real tmp45;
139 fftw_real tmp79;
140 fftw_real tmp80;
141 fftw_real tmp81;
142 fftw_real tmp48;
143 fftw_real tmp82;
144 fftw_real tmp22;
145 fftw_real tmp25;
146 fftw_real tmp50;
147 fftw_real tmp84;
148 fftw_real tmp85;
149 fftw_real tmp86;
150 fftw_real tmp53;
151 fftw_real tmp87;
152 ASSERT_ALIGNED_DOUBLE;
153 {
154 fftw_real tmp18;
155 fftw_real tmp19;
156 fftw_real tmp46;
157 fftw_real tmp47;
158 ASSERT_ALIGNED_DOUBLE;
159 tmp17 = c_re(input[6 * istride]);
160 tmp18 = c_re(input[11 * istride]);
161 tmp19 = c_re(input[istride]);
162 tmp20 = tmp18 + tmp19;
163 tmp45 = tmp17 - (K500000000 * tmp20);
164 tmp79 = K866025403 * (tmp19 - tmp18);
165 tmp80 = c_im(input[6 * istride]);
166 tmp46 = c_im(input[11 * istride]);
167 tmp47 = c_im(input[istride]);
168 tmp81 = tmp46 + tmp47;
169 tmp48 = K866025403 * (tmp46 - tmp47);
170 tmp82 = tmp80 - (K500000000 * tmp81);
171 }
172 {
173 fftw_real tmp23;
174 fftw_real tmp24;
175 fftw_real tmp51;
176 fftw_real tmp52;
177 ASSERT_ALIGNED_DOUBLE;
178 tmp22 = c_re(input[9 * istride]);
179 tmp23 = c_re(input[14 * istride]);
180 tmp24 = c_re(input[4 * istride]);
181 tmp25 = tmp23 + tmp24;
182 tmp50 = tmp22 - (K500000000 * tmp25);
183 tmp84 = K866025403 * (tmp24 - tmp23);
184 tmp85 = c_im(input[9 * istride]);
185 tmp51 = c_im(input[14 * istride]);
186 tmp52 = c_im(input[4 * istride]);
187 tmp86 = tmp51 + tmp52;
188 tmp53 = K866025403 * (tmp51 - tmp52);
189 tmp87 = tmp85 - (K500000000 * tmp86);
190 }
191 tmp21 = tmp17 + tmp20;
192 tmp26 = tmp22 + tmp25;
193 tmp27 = tmp21 + tmp26;
194 tmp49 = tmp45 - tmp48;
195 tmp54 = tmp50 - tmp53;
196 tmp55 = tmp49 + tmp54;
197 tmp108 = tmp81 + tmp80;
198 tmp109 = tmp86 + tmp85;
199 tmp147 = tmp108 + tmp109;
200 tmp61 = tmp45 + tmp48;
201 tmp62 = tmp50 + tmp53;
202 tmp63 = tmp61 + tmp62;
203 tmp96 = tmp82 - tmp79;
204 tmp97 = tmp87 - tmp84;
205 tmp138 = tmp96 + tmp97;
206 tmp83 = tmp79 + tmp82;
207 tmp88 = tmp84 + tmp87;
208 tmp118 = tmp83 + tmp88;
209 }
210 {
211 fftw_real tmp6;
212 fftw_real tmp9;
213 fftw_real tmp34;
214 fftw_real tmp68;
215 fftw_real tmp69;
216 fftw_real tmp70;
217 fftw_real tmp37;
218 fftw_real tmp71;
219 fftw_real tmp11;
220 fftw_real tmp14;
221 fftw_real tmp39;
222 fftw_real tmp73;
223 fftw_real tmp74;
224 fftw_real tmp75;
225 fftw_real tmp42;
226 fftw_real tmp76;
227 ASSERT_ALIGNED_DOUBLE;
228 {
229 fftw_real tmp7;
230 fftw_real tmp8;
231 fftw_real tmp35;
232 fftw_real tmp36;
233 ASSERT_ALIGNED_DOUBLE;
234 tmp6 = c_re(input[3 * istride]);
235 tmp7 = c_re(input[8 * istride]);
236 tmp8 = c_re(input[13 * istride]);
237 tmp9 = tmp7 + tmp8;
238 tmp34 = tmp6 - (K500000000 * tmp9);
239 tmp68 = K866025403 * (tmp8 - tmp7);
240 tmp69 = c_im(input[3 * istride]);
241 tmp35 = c_im(input[8 * istride]);
242 tmp36 = c_im(input[13 * istride]);
243 tmp70 = tmp35 + tmp36;
244 tmp37 = K866025403 * (tmp35 - tmp36);
245 tmp71 = tmp69 - (K500000000 * tmp70);
246 }
247 {
248 fftw_real tmp12;
249 fftw_real tmp13;
250 fftw_real tmp40;
251 fftw_real tmp41;
252 ASSERT_ALIGNED_DOUBLE;
253 tmp11 = c_re(input[12 * istride]);
254 tmp12 = c_re(input[2 * istride]);
255 tmp13 = c_re(input[7 * istride]);
256 tmp14 = tmp12 + tmp13;
257 tmp39 = tmp11 - (K500000000 * tmp14);
258 tmp73 = K866025403 * (tmp13 - tmp12);
259 tmp74 = c_im(input[12 * istride]);
260 tmp40 = c_im(input[2 * istride]);
261 tmp41 = c_im(input[7 * istride]);
262 tmp75 = tmp40 + tmp41;
263 tmp42 = K866025403 * (tmp40 - tmp41);
264 tmp76 = tmp74 - (K500000000 * tmp75);
265 }
266 tmp10 = tmp6 + tmp9;
267 tmp15 = tmp11 + tmp14;
268 tmp16 = tmp10 + tmp15;
269 tmp38 = tmp34 - tmp37;
270 tmp43 = tmp39 - tmp42;
271 tmp44 = tmp38 + tmp43;
272 tmp111 = tmp70 + tmp69;
273 tmp112 = tmp75 + tmp74;
274 tmp146 = tmp111 + tmp112;
275 tmp58 = tmp34 + tmp37;
276 tmp59 = tmp39 + tmp42;
277 tmp60 = tmp58 + tmp59;
278 tmp99 = tmp71 - tmp68;
279 tmp100 = tmp76 - tmp73;
280 tmp137 = tmp99 + tmp100;
281 tmp72 = tmp68 + tmp71;
282 tmp77 = tmp73 + tmp76;
283 tmp117 = tmp72 + tmp77;
284 }
285 {
286 fftw_real tmp106;
287 fftw_real tmp28;
288 fftw_real tmp105;
289 fftw_real tmp114;
290 fftw_real tmp116;
291 fftw_real tmp110;
292 fftw_real tmp113;
293 fftw_real tmp115;
294 fftw_real tmp107;
295 ASSERT_ALIGNED_DOUBLE;
296 tmp106 = K559016994 * (tmp16 - tmp27);
297 tmp28 = tmp16 + tmp27;
298 tmp105 = tmp5 - (K250000000 * tmp28);
299 tmp110 = tmp108 - tmp109;
300 tmp113 = tmp111 - tmp112;
301 tmp114 = (K951056516 * tmp110) - (K587785252 * tmp113);
302 tmp116 = (K951056516 * tmp113) + (K587785252 * tmp110);
303 c_re(output[0]) = tmp5 + tmp28;
304 tmp115 = tmp106 + tmp105;
305 c_re(output[9 * ostride]) = tmp115 - tmp116;
306 c_re(output[6 * ostride]) = tmp115 + tmp116;
307 tmp107 = tmp105 - tmp106;
308 c_re(output[12 * ostride]) = tmp107 - tmp114;
309 c_re(output[3 * ostride]) = tmp107 + tmp114;
310 }
311 {
312 fftw_real tmp94;
313 fftw_real tmp56;
314 fftw_real tmp93;
315 fftw_real tmp102;
316 fftw_real tmp104;
317 fftw_real tmp98;
318 fftw_real tmp101;
319 fftw_real tmp103;
320 fftw_real tmp95;
321 ASSERT_ALIGNED_DOUBLE;
322 tmp94 = K559016994 * (tmp44 - tmp55);
323 tmp56 = tmp44 + tmp55;
324 tmp93 = tmp33 - (K250000000 * tmp56);
325 tmp98 = tmp96 - tmp97;
326 tmp101 = tmp99 - tmp100;
327 tmp102 = (K951056516 * tmp98) - (K587785252 * tmp101);
328 tmp104 = (K951056516 * tmp101) + (K587785252 * tmp98);
329 c_re(output[5 * ostride]) = tmp33 + tmp56;
330 tmp103 = tmp94 + tmp93;
331 c_re(output[14 * ostride]) = tmp103 - tmp104;
332 c_re(output[11 * ostride]) = tmp103 + tmp104;
333 tmp95 = tmp93 - tmp94;
334 c_re(output[2 * ostride]) = tmp95 - tmp102;
335 c_re(output[8 * ostride]) = tmp95 + tmp102;
336 }
337 {
338 fftw_real tmp150;
339 fftw_real tmp148;
340 fftw_real tmp149;
341 fftw_real tmp154;
342 fftw_real tmp156;
343 fftw_real tmp152;
344 fftw_real tmp153;
345 fftw_real tmp155;
346 fftw_real tmp151;
347 ASSERT_ALIGNED_DOUBLE;
348 tmp150 = K559016994 * (tmp146 - tmp147);
349 tmp148 = tmp146 + tmp147;
350 tmp149 = tmp145 - (K250000000 * tmp148);
351 tmp152 = tmp21 - tmp26;
352 tmp153 = tmp10 - tmp15;
353 tmp154 = (K951056516 * tmp152) - (K587785252 * tmp153);
354 tmp156 = (K951056516 * tmp153) + (K587785252 * tmp152);
355 c_im(output[0]) = tmp148 + tmp145;
356 tmp155 = tmp150 + tmp149;
357 c_im(output[6 * ostride]) = tmp155 - tmp156;
358 c_im(output[9 * ostride]) = tmp156 + tmp155;
359 tmp151 = tmp149 - tmp150;
360 c_im(output[3 * ostride]) = tmp151 - tmp154;
361 c_im(output[12 * ostride]) = tmp154 + tmp151;
362 }
363 {
364 fftw_real tmp141;
365 fftw_real tmp139;
366 fftw_real tmp140;
367 fftw_real tmp135;
368 fftw_real tmp144;
369 fftw_real tmp133;
370 fftw_real tmp134;
371 fftw_real tmp143;
372 fftw_real tmp142;
373 ASSERT_ALIGNED_DOUBLE;
374 tmp141 = K559016994 * (tmp137 - tmp138);
375 tmp139 = tmp137 + tmp138;
376 tmp140 = tmp136 - (K250000000 * tmp139);
377 tmp133 = tmp49 - tmp54;
378 tmp134 = tmp38 - tmp43;
379 tmp135 = (K951056516 * tmp133) - (K587785252 * tmp134);
380 tmp144 = (K951056516 * tmp134) + (K587785252 * tmp133);
381 c_im(output[5 * ostride]) = tmp139 + tmp136;
382 tmp143 = tmp141 + tmp140;
383 c_im(output[11 * ostride]) = tmp143 - tmp144;
384 c_im(output[14 * ostride]) = tmp144 + tmp143;
385 tmp142 = tmp140 - tmp141;
386 c_im(output[2 * ostride]) = tmp135 + tmp142;
387 c_im(output[8 * ostride]) = tmp142 - tmp135;
388 }
389 {
390 fftw_real tmp119;
391 fftw_real tmp125;
392 fftw_real tmp126;
393 fftw_real tmp130;
394 fftw_real tmp131;
395 fftw_real tmp128;
396 fftw_real tmp129;
397 fftw_real tmp132;
398 fftw_real tmp127;
399 ASSERT_ALIGNED_DOUBLE;
400 tmp119 = K559016994 * (tmp117 - tmp118);
401 tmp125 = tmp117 + tmp118;
402 tmp126 = tmp124 - (K250000000 * tmp125);
403 tmp128 = tmp58 - tmp59;
404 tmp129 = tmp61 - tmp62;
405 tmp130 = (K951056516 * tmp128) + (K587785252 * tmp129);
406 tmp131 = (K951056516 * tmp129) - (K587785252 * tmp128);
407 c_im(output[10 * ostride]) = tmp125 + tmp124;
408 tmp132 = tmp126 - tmp119;
409 c_im(output[7 * ostride]) = tmp131 + tmp132;
410 c_im(output[13 * ostride]) = tmp132 - tmp131;
411 tmp127 = tmp119 + tmp126;
412 c_im(output[ostride]) = tmp127 - tmp130;
413 c_im(output[4 * ostride]) = tmp130 + tmp127;
414 }
415 {
416 fftw_real tmp65;
417 fftw_real tmp64;
418 fftw_real tmp66;
419 fftw_real tmp90;
420 fftw_real tmp92;
421 fftw_real tmp78;
422 fftw_real tmp89;
423 fftw_real tmp91;
424 fftw_real tmp67;
425 ASSERT_ALIGNED_DOUBLE;
426 tmp65 = K559016994 * (tmp60 - tmp63);
427 tmp64 = tmp60 + tmp63;
428 tmp66 = tmp57 - (K250000000 * tmp64);
429 tmp78 = tmp72 - tmp77;
430 tmp89 = tmp83 - tmp88;
431 tmp90 = (K951056516 * tmp78) + (K587785252 * tmp89);
432 tmp92 = (K951056516 * tmp89) - (K587785252 * tmp78);
433 c_re(output[10 * ostride]) = tmp57 + tmp64;
434 tmp91 = tmp66 - tmp65;
435 c_re(output[7 * ostride]) = tmp91 - tmp92;
436 c_re(output[13 * ostride]) = tmp91 + tmp92;
437 tmp67 = tmp65 + tmp66;
438 c_re(output[4 * ostride]) = tmp67 - tmp90;
439 c_re(output[ostride]) = tmp67 + tmp90;
440 }
441 }
442
443 fftw_codelet_desc fftw_no_twiddle_15_desc = {
444 "fftw_no_twiddle_15",
445 (void (*)()) fftw_no_twiddle_15,
446 15,
447 FFTW_FORWARD,
448 FFTW_NOTW,
449 331,
450 0,
451 (const int *) 0,
452 };
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
c_re
#define c_re(c)
Definition: fftw.h:60
ASSERT_ALIGNED_DOUBLE
#define ASSERT_ALIGNED_DOUBLE
Definition: fftw-int.h:236
fftw_no_twiddle_15
void fftw_no_twiddle_15(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fn_15.c:53
c_im
#define c_im(c)
Definition: fftw.h:61
fftw_real
float fftw_real
Definition: fftw.h:49
FFTW_NOTW
Definition: fftw.h:121
FFTW_FORWARD
Definition: fftw.h:64
fftw_no_twiddle_15_desc
fftw_codelet_desc fftw_no_twiddle_15_desc
Definition: fn_15.c:443