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