| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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