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:50 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 -notwiddleinv 12 */ |
||
27 | |||
28 | /* |
||
29 | * This function contains 96 FP additions, 16 FP multiplications, |
||
30 | * (or, 88 additions, 8 multiplications, 8 fused multiply/add), |
||
31 | * 40 stack variables, and 48 memory accesses |
||
32 | */ |
||
33 | static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627); |
||
34 | static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000); |
||
35 | |||
36 | /* |
||
37 | * Generator Id's : |
||
38 | * $Id: fni_12.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
39 | * $Id: fni_12.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
40 | * $Id: fni_12.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
41 | */ |
||
42 | |||
43 | void fftwi_no_twiddle_12(const fftw_complex *input, fftw_complex *output, int istride, int ostride) |
||
44 | { |
||
45 | fftw_real tmp5; |
||
46 | fftw_real tmp35; |
||
47 | fftw_real tmp57; |
||
48 | fftw_real tmp27; |
||
49 | fftw_real tmp58; |
||
50 | fftw_real tmp36; |
||
51 | fftw_real tmp10; |
||
52 | fftw_real tmp38; |
||
53 | fftw_real tmp60; |
||
54 | fftw_real tmp32; |
||
55 | fftw_real tmp61; |
||
56 | fftw_real tmp39; |
||
57 | fftw_real tmp16; |
||
58 | fftw_real tmp82; |
||
59 | fftw_real tmp42; |
||
60 | fftw_real tmp47; |
||
61 | fftw_real tmp76; |
||
62 | fftw_real tmp83; |
||
63 | fftw_real tmp21; |
||
64 | fftw_real tmp85; |
||
65 | fftw_real tmp49; |
||
66 | fftw_real tmp54; |
||
67 | fftw_real tmp77; |
||
68 | fftw_real tmp86; |
||
69 | ASSERT_ALIGNED_DOUBLE(); |
||
70 | { |
||
71 | fftw_real tmp1; |
||
72 | fftw_real tmp2; |
||
73 | fftw_real tmp3; |
||
74 | fftw_real tmp4; |
||
75 | ASSERT_ALIGNED_DOUBLE(); |
||
76 | tmp1 = c_re(input[0]); |
||
77 | tmp2 = c_re(input[4 * istride]); |
||
78 | tmp3 = c_re(input[8 * istride]); |
||
79 | tmp4 = tmp2 + tmp3; |
||
80 | tmp5 = tmp1 + tmp4; |
||
81 | tmp35 = tmp1 - (K500000000 * tmp4); |
||
82 | tmp57 = K866025403 * (tmp2 - tmp3); |
||
83 | } |
||
84 | { |
||
85 | fftw_real tmp23; |
||
86 | fftw_real tmp24; |
||
87 | fftw_real tmp25; |
||
88 | fftw_real tmp26; |
||
89 | ASSERT_ALIGNED_DOUBLE(); |
||
90 | tmp23 = c_im(input[0]); |
||
91 | tmp24 = c_im(input[4 * istride]); |
||
92 | tmp25 = c_im(input[8 * istride]); |
||
93 | tmp26 = tmp24 + tmp25; |
||
94 | tmp27 = tmp23 + tmp26; |
||
95 | tmp58 = tmp23 - (K500000000 * tmp26); |
||
96 | tmp36 = K866025403 * (tmp25 - tmp24); |
||
97 | } |
||
98 | { |
||
99 | fftw_real tmp6; |
||
100 | fftw_real tmp7; |
||
101 | fftw_real tmp8; |
||
102 | fftw_real tmp9; |
||
103 | ASSERT_ALIGNED_DOUBLE(); |
||
104 | tmp6 = c_re(input[6 * istride]); |
||
105 | tmp7 = c_re(input[10 * istride]); |
||
106 | tmp8 = c_re(input[2 * istride]); |
||
107 | tmp9 = tmp7 + tmp8; |
||
108 | tmp10 = tmp6 + tmp9; |
||
109 | tmp38 = tmp6 - (K500000000 * tmp9); |
||
110 | tmp60 = K866025403 * (tmp7 - tmp8); |
||
111 | } |
||
112 | { |
||
113 | fftw_real tmp28; |
||
114 | fftw_real tmp29; |
||
115 | fftw_real tmp30; |
||
116 | fftw_real tmp31; |
||
117 | ASSERT_ALIGNED_DOUBLE(); |
||
118 | tmp28 = c_im(input[6 * istride]); |
||
119 | tmp29 = c_im(input[10 * istride]); |
||
120 | tmp30 = c_im(input[2 * istride]); |
||
121 | tmp31 = tmp29 + tmp30; |
||
122 | tmp32 = tmp28 + tmp31; |
||
123 | tmp61 = tmp28 - (K500000000 * tmp31); |
||
124 | tmp39 = K866025403 * (tmp30 - tmp29); |
||
125 | } |
||
126 | { |
||
127 | fftw_real tmp12; |
||
128 | fftw_real tmp13; |
||
129 | fftw_real tmp14; |
||
130 | fftw_real tmp15; |
||
131 | ASSERT_ALIGNED_DOUBLE(); |
||
132 | tmp12 = c_re(input[3 * istride]); |
||
133 | tmp13 = c_re(input[7 * istride]); |
||
134 | tmp14 = c_re(input[11 * istride]); |
||
135 | tmp15 = tmp13 + tmp14; |
||
136 | tmp16 = tmp12 + tmp15; |
||
137 | tmp82 = tmp12 - (K500000000 * tmp15); |
||
138 | tmp42 = K866025403 * (tmp13 - tmp14); |
||
139 | } |
||
140 | { |
||
141 | fftw_real tmp43; |
||
142 | fftw_real tmp44; |
||
143 | fftw_real tmp45; |
||
144 | fftw_real tmp46; |
||
145 | ASSERT_ALIGNED_DOUBLE(); |
||
146 | tmp43 = c_im(input[3 * istride]); |
||
147 | tmp44 = c_im(input[7 * istride]); |
||
148 | tmp45 = c_im(input[11 * istride]); |
||
149 | tmp46 = tmp44 + tmp45; |
||
150 | tmp47 = tmp43 - (K500000000 * tmp46); |
||
151 | tmp76 = tmp43 + tmp46; |
||
152 | tmp83 = K866025403 * (tmp45 - tmp44); |
||
153 | } |
||
154 | { |
||
155 | fftw_real tmp17; |
||
156 | fftw_real tmp18; |
||
157 | fftw_real tmp19; |
||
158 | fftw_real tmp20; |
||
159 | ASSERT_ALIGNED_DOUBLE(); |
||
160 | tmp17 = c_re(input[9 * istride]); |
||
161 | tmp18 = c_re(input[istride]); |
||
162 | tmp19 = c_re(input[5 * istride]); |
||
163 | tmp20 = tmp18 + tmp19; |
||
164 | tmp21 = tmp17 + tmp20; |
||
165 | tmp85 = tmp17 - (K500000000 * tmp20); |
||
166 | tmp49 = K866025403 * (tmp18 - tmp19); |
||
167 | } |
||
168 | { |
||
169 | fftw_real tmp50; |
||
170 | fftw_real tmp51; |
||
171 | fftw_real tmp52; |
||
172 | fftw_real tmp53; |
||
173 | ASSERT_ALIGNED_DOUBLE(); |
||
174 | tmp50 = c_im(input[9 * istride]); |
||
175 | tmp51 = c_im(input[istride]); |
||
176 | tmp52 = c_im(input[5 * istride]); |
||
177 | tmp53 = tmp51 + tmp52; |
||
178 | tmp54 = tmp50 - (K500000000 * tmp53); |
||
179 | tmp77 = tmp50 + tmp53; |
||
180 | tmp86 = K866025403 * (tmp52 - tmp51); |
||
181 | } |
||
182 | { |
||
183 | fftw_real tmp11; |
||
184 | fftw_real tmp22; |
||
185 | fftw_real tmp33; |
||
186 | fftw_real tmp34; |
||
187 | ASSERT_ALIGNED_DOUBLE(); |
||
188 | tmp11 = tmp5 + tmp10; |
||
189 | tmp22 = tmp16 + tmp21; |
||
190 | c_re(output[6 * ostride]) = tmp11 - tmp22; |
||
191 | c_re(output[0]) = tmp11 + tmp22; |
||
192 | { |
||
193 | fftw_real tmp75; |
||
194 | fftw_real tmp78; |
||
195 | fftw_real tmp79; |
||
196 | fftw_real tmp80; |
||
197 | ASSERT_ALIGNED_DOUBLE(); |
||
198 | tmp75 = tmp5 - tmp10; |
||
199 | tmp78 = tmp76 - tmp77; |
||
200 | c_re(output[9 * ostride]) = tmp75 - tmp78; |
||
201 | c_re(output[3 * ostride]) = tmp75 + tmp78; |
||
202 | tmp79 = tmp27 + tmp32; |
||
203 | tmp80 = tmp76 + tmp77; |
||
204 | c_im(output[6 * ostride]) = tmp79 - tmp80; |
||
205 | c_im(output[0]) = tmp79 + tmp80; |
||
206 | } |
||
207 | tmp33 = tmp27 - tmp32; |
||
208 | tmp34 = tmp16 - tmp21; |
||
209 | c_im(output[3 * ostride]) = tmp33 - tmp34; |
||
210 | c_im(output[9 * ostride]) = tmp34 + tmp33; |
||
211 | { |
||
212 | fftw_real tmp67; |
||
213 | fftw_real tmp89; |
||
214 | fftw_real tmp88; |
||
215 | fftw_real tmp90; |
||
216 | fftw_real tmp70; |
||
217 | fftw_real tmp74; |
||
218 | fftw_real tmp73; |
||
219 | fftw_real tmp81; |
||
220 | ASSERT_ALIGNED_DOUBLE(); |
||
221 | { |
||
222 | fftw_real tmp65; |
||
223 | fftw_real tmp66; |
||
224 | fftw_real tmp84; |
||
225 | fftw_real tmp87; |
||
226 | ASSERT_ALIGNED_DOUBLE(); |
||
227 | tmp65 = tmp35 - tmp36; |
||
228 | tmp66 = tmp38 - tmp39; |
||
229 | tmp67 = tmp65 - tmp66; |
||
230 | tmp89 = tmp65 + tmp66; |
||
231 | tmp84 = tmp82 - tmp83; |
||
232 | tmp87 = tmp85 - tmp86; |
||
233 | tmp88 = tmp84 - tmp87; |
||
234 | tmp90 = tmp84 + tmp87; |
||
235 | } |
||
236 | { |
||
237 | fftw_real tmp68; |
||
238 | fftw_real tmp69; |
||
239 | fftw_real tmp71; |
||
240 | fftw_real tmp72; |
||
241 | ASSERT_ALIGNED_DOUBLE(); |
||
242 | tmp68 = tmp47 - tmp42; |
||
243 | tmp69 = tmp54 - tmp49; |
||
244 | tmp70 = tmp68 - tmp69; |
||
245 | tmp74 = tmp68 + tmp69; |
||
246 | tmp71 = tmp58 - tmp57; |
||
247 | tmp72 = tmp61 - tmp60; |
||
248 | tmp73 = tmp71 + tmp72; |
||
249 | tmp81 = tmp71 - tmp72; |
||
250 | } |
||
251 | c_re(output[5 * ostride]) = tmp67 - tmp70; |
||
252 | c_re(output[11 * ostride]) = tmp67 + tmp70; |
||
253 | c_im(output[2 * ostride]) = tmp73 - tmp74; |
||
254 | c_im(output[8 * ostride]) = tmp73 + tmp74; |
||
255 | c_im(output[11 * ostride]) = tmp81 - tmp88; |
||
256 | c_im(output[5 * ostride]) = tmp81 + tmp88; |
||
257 | c_re(output[2 * ostride]) = tmp89 - tmp90; |
||
258 | c_re(output[8 * ostride]) = tmp89 + tmp90; |
||
259 | } |
||
260 | { |
||
261 | fftw_real tmp41; |
||
262 | fftw_real tmp95; |
||
263 | fftw_real tmp94; |
||
264 | fftw_real tmp96; |
||
265 | fftw_real tmp56; |
||
266 | fftw_real tmp64; |
||
267 | fftw_real tmp63; |
||
268 | fftw_real tmp91; |
||
269 | ASSERT_ALIGNED_DOUBLE(); |
||
270 | { |
||
271 | fftw_real tmp37; |
||
272 | fftw_real tmp40; |
||
273 | fftw_real tmp92; |
||
274 | fftw_real tmp93; |
||
275 | ASSERT_ALIGNED_DOUBLE(); |
||
276 | tmp37 = tmp35 + tmp36; |
||
277 | tmp40 = tmp38 + tmp39; |
||
278 | tmp41 = tmp37 - tmp40; |
||
279 | tmp95 = tmp37 + tmp40; |
||
280 | tmp92 = tmp82 + tmp83; |
||
281 | tmp93 = tmp85 + tmp86; |
||
282 | tmp94 = tmp92 - tmp93; |
||
283 | tmp96 = tmp92 + tmp93; |
||
284 | } |
||
285 | { |
||
286 | fftw_real tmp48; |
||
287 | fftw_real tmp55; |
||
288 | fftw_real tmp59; |
||
289 | fftw_real tmp62; |
||
290 | ASSERT_ALIGNED_DOUBLE(); |
||
291 | tmp48 = tmp42 + tmp47; |
||
292 | tmp55 = tmp49 + tmp54; |
||
293 | tmp56 = tmp48 - tmp55; |
||
294 | tmp64 = tmp48 + tmp55; |
||
295 | tmp59 = tmp57 + tmp58; |
||
296 | tmp62 = tmp60 + tmp61; |
||
297 | tmp63 = tmp59 + tmp62; |
||
298 | tmp91 = tmp59 - tmp62; |
||
299 | } |
||
300 | c_re(output[ostride]) = tmp41 - tmp56; |
||
301 | c_re(output[7 * ostride]) = tmp41 + tmp56; |
||
302 | c_im(output[10 * ostride]) = tmp63 - tmp64; |
||
303 | c_im(output[4 * ostride]) = tmp63 + tmp64; |
||
304 | c_im(output[7 * ostride]) = tmp91 - tmp94; |
||
305 | c_im(output[ostride]) = tmp91 + tmp94; |
||
306 | c_re(output[10 * ostride]) = tmp95 - tmp96; |
||
307 | c_re(output[4 * ostride]) = tmp95 + tmp96; |
||
308 | } |
||
309 | } |
||
310 | } |
||
311 | |||
312 | fftw_codelet_desc fftwi_no_twiddle_12_desc = |
||
313 | { |
||
314 | "fftwi_no_twiddle_12", |
||
315 | (void (*)()) fftwi_no_twiddle_12, |
||
316 | 12, |
||
317 | FFTW_BACKWARD, |
||
318 | FFTW_NOTW, |
||
319 | 276, |
||
320 | 0, |
||
321 | (const int *) 0, |
||
322 | }; |