Rev 3 | Go to most recent revision | 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:54:45 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 -notwiddleinv 7 */ |
||
27 | |||
28 | /* |
||
29 | * This function contains 60 FP additions, 36 FP multiplications, |
||
30 | * (or, 60 additions, 36 multiplications, 0 fused multiply/add), |
||
31 | * 22 stack variables, and 28 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: fni_7.c,v 1.2 2003-03-24 11:14:52 pj Exp $ |
43 | * $Id: fni_7.c,v 1.2 2003-03-24 11:14:52 pj Exp $ |
||
44 | * $Id: fni_7.c,v 1.2 2003-03-24 11:14:52 pj Exp $ |
||
2 | pj | 45 | */ |
46 | |||
47 | void fftwi_no_twiddle_7(const fftw_complex *input, fftw_complex *output, int istride, int ostride) |
||
48 | { |
||
49 | fftw_real tmp1; |
||
50 | fftw_real tmp15; |
||
51 | fftw_real tmp4; |
||
52 | fftw_real tmp11; |
||
53 | fftw_real tmp24; |
||
54 | fftw_real tmp31; |
||
55 | fftw_real tmp7; |
||
56 | fftw_real tmp13; |
||
57 | fftw_real tmp18; |
||
58 | fftw_real tmp33; |
||
59 | fftw_real tmp10; |
||
60 | fftw_real tmp12; |
||
61 | fftw_real tmp21; |
||
62 | fftw_real tmp32; |
||
63 | ASSERT_ALIGNED_DOUBLE(); |
||
64 | tmp1 = c_re(input[0]); |
||
65 | tmp15 = c_im(input[0]); |
||
66 | { |
||
67 | fftw_real tmp2; |
||
68 | fftw_real tmp3; |
||
69 | fftw_real tmp22; |
||
70 | fftw_real tmp23; |
||
71 | ASSERT_ALIGNED_DOUBLE(); |
||
72 | tmp2 = c_re(input[istride]); |
||
73 | tmp3 = c_re(input[6 * istride]); |
||
74 | tmp4 = tmp2 + tmp3; |
||
75 | tmp11 = tmp2 - tmp3; |
||
76 | tmp22 = c_im(input[istride]); |
||
77 | tmp23 = c_im(input[6 * istride]); |
||
78 | tmp24 = tmp22 + tmp23; |
||
79 | tmp31 = tmp23 - tmp22; |
||
80 | } |
||
81 | { |
||
82 | fftw_real tmp5; |
||
83 | fftw_real tmp6; |
||
84 | fftw_real tmp16; |
||
85 | fftw_real tmp17; |
||
86 | ASSERT_ALIGNED_DOUBLE(); |
||
87 | tmp5 = c_re(input[2 * istride]); |
||
88 | tmp6 = c_re(input[5 * istride]); |
||
89 | tmp7 = tmp5 + tmp6; |
||
90 | tmp13 = tmp5 - tmp6; |
||
91 | tmp16 = c_im(input[2 * istride]); |
||
92 | tmp17 = c_im(input[5 * istride]); |
||
93 | tmp18 = tmp16 + tmp17; |
||
94 | tmp33 = tmp17 - tmp16; |
||
95 | } |
||
96 | { |
||
97 | fftw_real tmp8; |
||
98 | fftw_real tmp9; |
||
99 | fftw_real tmp19; |
||
100 | fftw_real tmp20; |
||
101 | ASSERT_ALIGNED_DOUBLE(); |
||
102 | tmp8 = c_re(input[3 * istride]); |
||
103 | tmp9 = c_re(input[4 * istride]); |
||
104 | tmp10 = tmp8 + tmp9; |
||
105 | tmp12 = tmp8 - tmp9; |
||
106 | tmp19 = c_im(input[3 * istride]); |
||
107 | tmp20 = c_im(input[4 * istride]); |
||
108 | tmp21 = tmp19 + tmp20; |
||
109 | tmp32 = tmp20 - tmp19; |
||
110 | } |
||
111 | { |
||
112 | fftw_real tmp36; |
||
113 | fftw_real tmp35; |
||
114 | fftw_real tmp26; |
||
115 | fftw_real tmp27; |
||
116 | ASSERT_ALIGNED_DOUBLE(); |
||
117 | c_re(output[0]) = tmp1 + tmp4 + tmp7 + tmp10; |
||
118 | tmp36 = (K781831482 * tmp31) + (K974927912 * tmp33) + (K433883739 * tmp32); |
||
119 | tmp35 = tmp1 + (K623489801 * tmp4) - (K900968867 * tmp10) - (K222520933 * tmp7); |
||
120 | c_re(output[6 * ostride]) = tmp35 - tmp36; |
||
121 | c_re(output[ostride]) = tmp35 + tmp36; |
||
122 | { |
||
123 | fftw_real tmp38; |
||
124 | fftw_real tmp37; |
||
125 | fftw_real tmp34; |
||
126 | fftw_real tmp30; |
||
127 | ASSERT_ALIGNED_DOUBLE(); |
||
128 | tmp38 = (K433883739 * tmp31) + (K974927912 * tmp32) - (K781831482 * tmp33); |
||
129 | tmp37 = tmp1 + (K623489801 * tmp7) - (K222520933 * tmp10) - (K900968867 * tmp4); |
||
130 | c_re(output[4 * ostride]) = tmp37 - tmp38; |
||
131 | c_re(output[3 * ostride]) = tmp37 + tmp38; |
||
132 | tmp34 = (K974927912 * tmp31) - (K781831482 * tmp32) - (K433883739 * tmp33); |
||
133 | tmp30 = tmp1 + (K623489801 * tmp10) - (K900968867 * tmp7) - (K222520933 * tmp4); |
||
134 | c_re(output[5 * ostride]) = tmp30 - tmp34; |
||
135 | c_re(output[2 * ostride]) = tmp30 + tmp34; |
||
136 | } |
||
137 | c_im(output[0]) = tmp15 + tmp24 + tmp18 + tmp21; |
||
138 | tmp26 = (K781831482 * tmp11) + (K974927912 * tmp13) + (K433883739 * tmp12); |
||
139 | tmp27 = tmp15 + (K623489801 * tmp24) - (K900968867 * tmp21) - (K222520933 * tmp18); |
||
140 | c_im(output[ostride]) = tmp26 + tmp27; |
||
141 | c_im(output[6 * ostride]) = tmp27 - tmp26; |
||
142 | { |
||
143 | fftw_real tmp14; |
||
144 | fftw_real tmp25; |
||
145 | fftw_real tmp28; |
||
146 | fftw_real tmp29; |
||
147 | ASSERT_ALIGNED_DOUBLE(); |
||
148 | tmp14 = (K433883739 * tmp11) + (K974927912 * tmp12) - (K781831482 * tmp13); |
||
149 | tmp25 = tmp15 + (K623489801 * tmp18) - (K222520933 * tmp21) - (K900968867 * tmp24); |
||
150 | c_im(output[3 * ostride]) = tmp14 + tmp25; |
||
151 | c_im(output[4 * ostride]) = tmp25 - tmp14; |
||
152 | tmp28 = (K974927912 * tmp11) - (K781831482 * tmp12) - (K433883739 * tmp13); |
||
153 | tmp29 = tmp15 + (K623489801 * tmp21) - (K900968867 * tmp18) - (K222520933 * tmp24); |
||
154 | c_im(output[2 * ostride]) = tmp28 + tmp29; |
||
155 | c_im(output[5 * ostride]) = tmp29 - tmp28; |
||
156 | } |
||
157 | } |
||
158 | } |
||
159 | |||
160 | fftw_codelet_desc fftwi_no_twiddle_7_desc = |
||
161 | { |
||
162 | "fftwi_no_twiddle_7", |
||
163 | (void (*)()) fftwi_no_twiddle_7, |
||
164 | 7, |
||
165 | FFTW_BACKWARD, |
||
166 | FFTW_NOTW, |
||
167 | 166, |
||
168 | 0, |
||
169 | (const int *) 0, |
||
170 | }; |