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