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:55:19 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 -twiddle 5 */ |
||
27 | |||
28 | /* |
||
29 | * This function contains 40 FP additions, 28 FP multiplications, |
||
30 | * (or, 26 additions, 14 multiplications, 14 fused multiply/add), |
||
31 | * 26 stack variables, and 20 memory accesses |
||
32 | */ |
||
33 | static const fftw_real K250000000 = FFTW_KONST(+0.250000000000000000000000000000000000000000000); |
||
34 | static const fftw_real K559016994 = FFTW_KONST(+0.559016994374947424102293417182819058860154590); |
||
35 | static const fftw_real K587785252 = FFTW_KONST(+0.587785252292473129168705954639072768597652438); |
||
36 | static const fftw_real K951056516 = FFTW_KONST(+0.951056516295153572116439333379382143405698634); |
||
37 | |||
38 | /* |
||
39 | * Generator Id's : |
||
40 | * $Id: ftw_5.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $ |
||
41 | * $Id: ftw_5.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $ |
||
42 | * $Id: ftw_5.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $ |
||
43 | */ |
||
44 | |||
45 | void fftw_twiddle_5(fftw_complex *A, const fftw_complex *W, int iostride, int m, int dist) |
||
46 | { |
||
47 | int i; |
||
48 | fftw_complex *inout; |
||
49 | inout = A; |
||
50 | for (i = m; i > 0; i = i - 1, inout = inout + dist, W = W + 4) { |
||
51 | fftw_real tmp1; |
||
52 | fftw_real tmp40; |
||
53 | fftw_real tmp30; |
||
54 | fftw_real tmp33; |
||
55 | fftw_real tmp37; |
||
56 | fftw_real tmp38; |
||
57 | fftw_real tmp39; |
||
58 | fftw_real tmp45; |
||
59 | fftw_real tmp44; |
||
60 | fftw_real tmp12; |
||
61 | fftw_real tmp23; |
||
62 | fftw_real tmp24; |
||
63 | ASSERT_ALIGNED_DOUBLE(); |
||
64 | tmp1 = c_re(inout[0]); |
||
65 | tmp40 = c_im(inout[0]); |
||
66 | { |
||
67 | fftw_real tmp6; |
||
68 | fftw_real tmp28; |
||
69 | fftw_real tmp22; |
||
70 | fftw_real tmp32; |
||
71 | fftw_real tmp11; |
||
72 | fftw_real tmp29; |
||
73 | fftw_real tmp17; |
||
74 | fftw_real tmp31; |
||
75 | ASSERT_ALIGNED_DOUBLE(); |
||
76 | { |
||
77 | fftw_real tmp3; |
||
78 | fftw_real tmp5; |
||
79 | fftw_real tmp2; |
||
80 | fftw_real tmp4; |
||
81 | ASSERT_ALIGNED_DOUBLE(); |
||
82 | tmp3 = c_re(inout[iostride]); |
||
83 | tmp5 = c_im(inout[iostride]); |
||
84 | tmp2 = c_re(W[0]); |
||
85 | tmp4 = c_im(W[0]); |
||
86 | tmp6 = (tmp2 * tmp3) - (tmp4 * tmp5); |
||
87 | tmp28 = (tmp4 * tmp3) + (tmp2 * tmp5); |
||
88 | } |
||
89 | { |
||
90 | fftw_real tmp19; |
||
91 | fftw_real tmp21; |
||
92 | fftw_real tmp18; |
||
93 | fftw_real tmp20; |
||
94 | ASSERT_ALIGNED_DOUBLE(); |
||
95 | tmp19 = c_re(inout[3 * iostride]); |
||
96 | tmp21 = c_im(inout[3 * iostride]); |
||
97 | tmp18 = c_re(W[2]); |
||
98 | tmp20 = c_im(W[2]); |
||
99 | tmp22 = (tmp18 * tmp19) - (tmp20 * tmp21); |
||
100 | tmp32 = (tmp20 * tmp19) + (tmp18 * tmp21); |
||
101 | } |
||
102 | { |
||
103 | fftw_real tmp8; |
||
104 | fftw_real tmp10; |
||
105 | fftw_real tmp7; |
||
106 | fftw_real tmp9; |
||
107 | ASSERT_ALIGNED_DOUBLE(); |
||
108 | tmp8 = c_re(inout[4 * iostride]); |
||
109 | tmp10 = c_im(inout[4 * iostride]); |
||
110 | tmp7 = c_re(W[3]); |
||
111 | tmp9 = c_im(W[3]); |
||
112 | tmp11 = (tmp7 * tmp8) - (tmp9 * tmp10); |
||
113 | tmp29 = (tmp9 * tmp8) + (tmp7 * tmp10); |
||
114 | } |
||
115 | { |
||
116 | fftw_real tmp14; |
||
117 | fftw_real tmp16; |
||
118 | fftw_real tmp13; |
||
119 | fftw_real tmp15; |
||
120 | ASSERT_ALIGNED_DOUBLE(); |
||
121 | tmp14 = c_re(inout[2 * iostride]); |
||
122 | tmp16 = c_im(inout[2 * iostride]); |
||
123 | tmp13 = c_re(W[1]); |
||
124 | tmp15 = c_im(W[1]); |
||
125 | tmp17 = (tmp13 * tmp14) - (tmp15 * tmp16); |
||
126 | tmp31 = (tmp15 * tmp14) + (tmp13 * tmp16); |
||
127 | } |
||
128 | tmp30 = tmp28 - tmp29; |
||
129 | tmp33 = tmp31 - tmp32; |
||
130 | tmp37 = tmp28 + tmp29; |
||
131 | tmp38 = tmp31 + tmp32; |
||
132 | tmp39 = tmp37 + tmp38; |
||
133 | tmp45 = tmp17 - tmp22; |
||
134 | tmp44 = tmp6 - tmp11; |
||
135 | tmp12 = tmp6 + tmp11; |
||
136 | tmp23 = tmp17 + tmp22; |
||
137 | tmp24 = tmp12 + tmp23; |
||
138 | } |
||
139 | c_re(inout[0]) = tmp1 + tmp24; |
||
140 | { |
||
141 | fftw_real tmp34; |
||
142 | fftw_real tmp36; |
||
143 | fftw_real tmp27; |
||
144 | fftw_real tmp35; |
||
145 | fftw_real tmp25; |
||
146 | fftw_real tmp26; |
||
147 | ASSERT_ALIGNED_DOUBLE(); |
||
148 | tmp34 = (K951056516 * tmp30) + (K587785252 * tmp33); |
||
149 | tmp36 = (K951056516 * tmp33) - (K587785252 * tmp30); |
||
150 | tmp25 = K559016994 * (tmp12 - tmp23); |
||
151 | tmp26 = tmp1 - (K250000000 * tmp24); |
||
152 | tmp27 = tmp25 + tmp26; |
||
153 | tmp35 = tmp26 - tmp25; |
||
154 | c_re(inout[4 * iostride]) = tmp27 - tmp34; |
||
155 | c_re(inout[iostride]) = tmp27 + tmp34; |
||
156 | c_re(inout[2 * iostride]) = tmp35 - tmp36; |
||
157 | c_re(inout[3 * iostride]) = tmp35 + tmp36; |
||
158 | } |
||
159 | c_im(inout[0]) = tmp39 + tmp40; |
||
160 | { |
||
161 | fftw_real tmp46; |
||
162 | fftw_real tmp47; |
||
163 | fftw_real tmp43; |
||
164 | fftw_real tmp48; |
||
165 | fftw_real tmp41; |
||
166 | fftw_real tmp42; |
||
167 | ASSERT_ALIGNED_DOUBLE(); |
||
168 | tmp46 = (K951056516 * tmp44) + (K587785252 * tmp45); |
||
169 | tmp47 = (K951056516 * tmp45) - (K587785252 * tmp44); |
||
170 | tmp41 = K559016994 * (tmp37 - tmp38); |
||
171 | tmp42 = tmp40 - (K250000000 * tmp39); |
||
172 | tmp43 = tmp41 + tmp42; |
||
173 | tmp48 = tmp42 - tmp41; |
||
174 | c_im(inout[iostride]) = tmp43 - tmp46; |
||
175 | c_im(inout[4 * iostride]) = tmp46 + tmp43; |
||
176 | c_im(inout[2 * iostride]) = tmp47 + tmp48; |
||
177 | c_im(inout[3 * iostride]) = tmp48 - tmp47; |
||
178 | } |
||
179 | } |
||
180 | } |
||
181 | |||
182 | static const int twiddle_order[] = |
||
183 | {1, 2, 3, 4}; |
||
184 | fftw_codelet_desc fftw_twiddle_5_desc = |
||
185 | { |
||
186 | "fftw_twiddle_5", |
||
187 | (void (*)()) fftw_twiddle_5, |
||
188 | 5, |
||
189 | FFTW_FORWARD, |
||
190 | FFTW_TWIDDLE, |
||
191 | 110, |
||
192 | 4, |
||
193 | twiddle_order, |
||
194 | }; |