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