| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

ftwi_6.c
Go to the documentation of this file.
1 /*
2 * Copyright (c) 1997-1999, 2003 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 Mon Mar 24 02:08:26 EST 2003 */
22
23 #include "fftw-int.h"
24 #include "fftw.h"
25
26 /* Generated by: /homee/stevenj/cvs/fftw/gensrc/genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -twiddleinv 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 =
34 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
35 static const fftw_real K866025403 =
36 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
37
38 /*
39 * Generator Id's :
40 * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
41 * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
42 * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
43 */
44
45 void fftwi_twiddle_6(fftw_complex *A, const fftw_complex *W, int iostride,
46 int m, int dist)
47 {
48 int i;
49 fftw_complex *inout;
50 inout = A;
51 for (i = m; i > 0; i = i - 1, inout = inout + dist, W = W + 5) {
52 fftw_real tmp7;
53 fftw_real tmp31;
54 fftw_real tmp50;
55 fftw_real tmp54;
56 fftw_real tmp29;
57 fftw_real tmp33;
58 fftw_real tmp38;
59 fftw_real tmp44;
60 fftw_real tmp18;
61 fftw_real tmp32;
62 fftw_real tmp41;
63 fftw_real tmp45;
64 ASSERT_ALIGNED_DOUBLE;
65 {
66 fftw_real tmp1;
67 fftw_real tmp49;
68 fftw_real tmp6;
69 fftw_real tmp48;
70 ASSERT_ALIGNED_DOUBLE;
71 tmp1 = c_re(inout[0]);
72 tmp49 = c_im(inout[0]);
73 {
74 fftw_real tmp3;
75 fftw_real tmp5;
76 fftw_real tmp2;
77 fftw_real tmp4;
78 ASSERT_ALIGNED_DOUBLE;
79 tmp3 = c_re(inout[3 * iostride]);
80 tmp5 = c_im(inout[3 * iostride]);
81 tmp2 = c_re(W[2]);
82 tmp4 = c_im(W[2]);
83 tmp6 = (tmp2 * tmp3) + (tmp4 * tmp5);
84 tmp48 = (tmp2 * tmp5) - (tmp4 * tmp3);
85 }
86 tmp7 = tmp1 - tmp6;
87 tmp31 = tmp1 + tmp6;
88 tmp50 = tmp48 + tmp49;
89 tmp54 = tmp49 - tmp48;
90 }
91 {
92 fftw_real tmp23;
93 fftw_real tmp36;
94 fftw_real tmp28;
95 fftw_real tmp37;
96 ASSERT_ALIGNED_DOUBLE;
97 {
98 fftw_real tmp20;
99 fftw_real tmp22;
100 fftw_real tmp19;
101 fftw_real tmp21;
102 ASSERT_ALIGNED_DOUBLE;
103 tmp20 = c_re(inout[4 * iostride]);
104 tmp22 = c_im(inout[4 * iostride]);
105 tmp19 = c_re(W[3]);
106 tmp21 = c_im(W[3]);
107 tmp23 = (tmp19 * tmp20) + (tmp21 * tmp22);
108 tmp36 = (tmp19 * tmp22) - (tmp21 * tmp20);
109 }
110 {
111 fftw_real tmp25;
112 fftw_real tmp27;
113 fftw_real tmp24;
114 fftw_real tmp26;
115 ASSERT_ALIGNED_DOUBLE;
116 tmp25 = c_re(inout[iostride]);
117 tmp27 = c_im(inout[iostride]);
118 tmp24 = c_re(W[0]);
119 tmp26 = c_im(W[0]);
120 tmp28 = (tmp24 * tmp25) + (tmp26 * tmp27);
121 tmp37 = (tmp24 * tmp27) - (tmp26 * tmp25);
122 }
123 tmp29 = tmp23 - tmp28;
124 tmp33 = tmp23 + tmp28;
125 tmp38 = tmp36 - tmp37;
126 tmp44 = tmp36 + tmp37;
127 }
128 {
129 fftw_real tmp12;
130 fftw_real tmp39;
131 fftw_real tmp17;
132 fftw_real tmp40;
133 ASSERT_ALIGNED_DOUBLE;
134 {
135 fftw_real tmp9;
136 fftw_real tmp11;
137 fftw_real tmp8;
138 fftw_real tmp10;
139 ASSERT_ALIGNED_DOUBLE;
140 tmp9 = c_re(inout[2 * iostride]);
141 tmp11 = c_im(inout[2 * iostride]);
142 tmp8 = c_re(W[1]);
143 tmp10 = c_im(W[1]);
144 tmp12 = (tmp8 * tmp9) + (tmp10 * tmp11);
145 tmp39 = (tmp8 * tmp11) - (tmp10 * tmp9);
146 }
147 {
148 fftw_real tmp14;
149 fftw_real tmp16;
150 fftw_real tmp13;
151 fftw_real tmp15;
152 ASSERT_ALIGNED_DOUBLE;
153 tmp14 = c_re(inout[5 * iostride]);
154 tmp16 = c_im(inout[5 * iostride]);
155 tmp13 = c_re(W[4]);
156 tmp15 = c_im(W[4]);
157 tmp17 = (tmp13 * tmp14) + (tmp15 * tmp16);
158 tmp40 = (tmp13 * tmp16) - (tmp15 * tmp14);
159 }
160 tmp18 = tmp12 - tmp17;
161 tmp32 = tmp12 + tmp17;
162 tmp41 = tmp39 - tmp40;
163 tmp45 = tmp39 + tmp40;
164 }
165 {
166 fftw_real tmp42;
167 fftw_real tmp30;
168 fftw_real tmp35;
169 fftw_real tmp53;
170 fftw_real tmp55;
171 fftw_real tmp56;
172 ASSERT_ALIGNED_DOUBLE;
173 tmp42 = K866025403 * (tmp38 - tmp41);
174 tmp30 = tmp18 + tmp29;
175 tmp35 = tmp7 - (K500000000 * tmp30);
176 c_re(inout[3 * iostride]) = tmp7 + tmp30;
177 c_re(inout[iostride]) = tmp35 + tmp42;
178 c_re(inout[5 * iostride]) = tmp35 - tmp42;
179 tmp53 = K866025403 * (tmp18 - tmp29);
180 tmp55 = tmp41 + tmp38;
181 tmp56 = tmp54 - (K500000000 * tmp55);
182 c_im(inout[iostride]) = tmp53 + tmp56;
183 c_im(inout[5 * iostride]) = tmp56 - tmp53;
184 c_im(inout[3 * iostride]) = tmp55 + tmp54;
185 }
186 {
187 fftw_real tmp46;
188 fftw_real tmp34;
189 fftw_real tmp43;
190 fftw_real tmp52;
191 fftw_real tmp47;
192 fftw_real tmp51;
193 ASSERT_ALIGNED_DOUBLE;
194 tmp46 = K866025403 * (tmp44 - tmp45);
195 tmp34 = tmp32 + tmp33;
196 tmp43 = tmp31 - (K500000000 * tmp34);
197 c_re(inout[0]) = tmp31 + tmp34;
198 c_re(inout[4 * iostride]) = tmp43 + tmp46;
199 c_re(inout[2 * iostride]) = tmp43 - tmp46;
200 tmp52 = K866025403 * (tmp32 - tmp33);
201 tmp47 = tmp45 + tmp44;
202 tmp51 = tmp50 - (K500000000 * tmp47);
203 c_im(inout[0]) = tmp47 + tmp50;
204 c_im(inout[4 * iostride]) = tmp52 + tmp51;
205 c_im(inout[2 * iostride]) = tmp51 - tmp52;
206 }
207 }
208 }
209
210 static const int twiddle_order[] = { 1, 2, 3, 4, 5 };
211 fftw_codelet_desc fftwi_twiddle_6_desc = {
212 "fftwi_twiddle_6",
213 (void (*)()) fftwi_twiddle_6,
214 6,
215 FFTW_BACKWARD,
216 FFTW_TWIDDLE,
217 143,
218 5,
219 twiddle_order,
220 };
fftw_codelet_desc
Definition: fftw.h:126
fftw-int.h
fftw_complex
Definition: fftw.h:57
fftwi_twiddle_6_desc
fftw_codelet_desc fftwi_twiddle_6_desc
Definition: ftwi_6.c:211
FFTW_KONST
#define FFTW_KONST(x)
Definition: fftw-int.h:178
fftw.h
FFTW_TWIDDLE
Definition: fftw.h:121
fftwi_twiddle_6
void fftwi_twiddle_6(fftw_complex *A, const fftw_complex *W, int iostride, int m, int dist)
Definition: ftwi_6.c:45
c_re
#define c_re(c)
Definition: fftw.h:60
FFTW_BACKWARD
Definition: fftw.h:64
ASSERT_ALIGNED_DOUBLE
#define ASSERT_ALIGNED_DOUBLE
Definition: fftw-int.h:236
c_im
#define c_im(c)
Definition: fftw.h:61
fftw_real
float fftw_real
Definition: fftw.h:49