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