| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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