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