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:07:18 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 -hc2real 16 */
27 
28 /*
29  * This function contains 58 FP additions, 18 FP multiplications,
30  * (or, 54 additions, 14 multiplications, 4 fused multiply/add),
31  * 26 stack variables, and 32 memory accesses
32  */
33 static const fftw_real K765366864 =
34 FFTW_KONST(+0.765366864730179543456919968060797733522689125);
35 static const fftw_real K1_847759065 =
36 FFTW_KONST(+1.847759065022573512256366378793576573644833252);
37 static const fftw_real K1_414213562 =
38 FFTW_KONST(+1.414213562373095048801688724209698078569671875);
39 static const fftw_real K2_000000000 =
40 FFTW_KONST(+2.000000000000000000000000000000000000000000000);
41 
42 /*
43  * Generator Id's :
44  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
45  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
46  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
47  */
48 
fftw_hc2real_16(const fftw_real * real_input,const fftw_real * imag_input,fftw_real * output,int real_istride,int imag_istride,int ostride)49 void fftw_hc2real_16(const fftw_real *real_input,
50 		     const fftw_real *imag_input, fftw_real *output,
51 		     int real_istride, int imag_istride, int ostride)
52 {
53      fftw_real tmp9;
54      fftw_real tmp54;
55      fftw_real tmp38;
56      fftw_real tmp21;
57      fftw_real tmp6;
58      fftw_real tmp18;
59      fftw_real tmp42;
60      fftw_real tmp53;
61      fftw_real tmp13;
62      fftw_real tmp29;
63      fftw_real tmp16;
64      fftw_real tmp26;
65      fftw_real tmp23;
66      fftw_real tmp49;
67      fftw_real tmp57;
68      fftw_real tmp56;
69      fftw_real tmp46;
70      fftw_real tmp30;
71      ASSERT_ALIGNED_DOUBLE;
72      {
73 	  fftw_real tmp7;
74 	  fftw_real tmp8;
75 	  fftw_real tmp36;
76 	  fftw_real tmp19;
77 	  fftw_real tmp20;
78 	  fftw_real tmp37;
79 	  ASSERT_ALIGNED_DOUBLE;
80 	  tmp7 = real_input[2 * real_istride];
81 	  tmp8 = real_input[6 * real_istride];
82 	  tmp36 = tmp7 - tmp8;
83 	  tmp19 = imag_input[2 * imag_istride];
84 	  tmp20 = imag_input[6 * imag_istride];
85 	  tmp37 = tmp19 + tmp20;
86 	  tmp9 = K2_000000000 * (tmp7 + tmp8);
87 	  tmp54 = K1_414213562 * (tmp36 + tmp37);
88 	  tmp38 = K1_414213562 * (tmp36 - tmp37);
89 	  tmp21 = K2_000000000 * (tmp19 - tmp20);
90      }
91      {
92 	  fftw_real tmp5;
93 	  fftw_real tmp41;
94 	  fftw_real tmp3;
95 	  fftw_real tmp39;
96 	  ASSERT_ALIGNED_DOUBLE;
97 	  {
98 	       fftw_real tmp4;
99 	       fftw_real tmp40;
100 	       fftw_real tmp1;
101 	       fftw_real tmp2;
102 	       ASSERT_ALIGNED_DOUBLE;
103 	       tmp4 = real_input[4 * real_istride];
104 	       tmp5 = K2_000000000 * tmp4;
105 	       tmp40 = imag_input[4 * imag_istride];
106 	       tmp41 = K2_000000000 * tmp40;
107 	       tmp1 = real_input[0];
108 	       tmp2 = real_input[8 * real_istride];
109 	       tmp3 = tmp1 + tmp2;
110 	       tmp39 = tmp1 - tmp2;
111 	  }
112 	  tmp6 = tmp3 + tmp5;
113 	  tmp18 = tmp3 - tmp5;
114 	  tmp42 = tmp39 - tmp41;
115 	  tmp53 = tmp39 + tmp41;
116      }
117      {
118 	  fftw_real tmp44;
119 	  fftw_real tmp48;
120 	  fftw_real tmp47;
121 	  fftw_real tmp45;
122 	  ASSERT_ALIGNED_DOUBLE;
123 	  {
124 	       fftw_real tmp11;
125 	       fftw_real tmp12;
126 	       fftw_real tmp27;
127 	       fftw_real tmp28;
128 	       ASSERT_ALIGNED_DOUBLE;
129 	       tmp11 = real_input[real_istride];
130 	       tmp12 = real_input[7 * real_istride];
131 	       tmp13 = tmp11 + tmp12;
132 	       tmp44 = tmp11 - tmp12;
133 	       tmp27 = imag_input[imag_istride];
134 	       tmp28 = imag_input[7 * imag_istride];
135 	       tmp29 = tmp27 - tmp28;
136 	       tmp48 = tmp27 + tmp28;
137 	  }
138 	  {
139 	       fftw_real tmp14;
140 	       fftw_real tmp15;
141 	       fftw_real tmp24;
142 	       fftw_real tmp25;
143 	       ASSERT_ALIGNED_DOUBLE;
144 	       tmp14 = real_input[3 * real_istride];
145 	       tmp15 = real_input[5 * real_istride];
146 	       tmp16 = tmp14 + tmp15;
147 	       tmp47 = tmp15 - tmp14;
148 	       tmp24 = imag_input[3 * imag_istride];
149 	       tmp25 = imag_input[5 * imag_istride];
150 	       tmp26 = tmp24 - tmp25;
151 	       tmp45 = tmp24 + tmp25;
152 	  }
153 	  tmp23 = tmp13 - tmp16;
154 	  tmp49 = tmp47 + tmp48;
155 	  tmp57 = tmp48 - tmp47;
156 	  tmp56 = tmp44 + tmp45;
157 	  tmp46 = tmp44 - tmp45;
158 	  tmp30 = tmp26 + tmp29;
159      }
160      {
161 	  fftw_real tmp10;
162 	  fftw_real tmp17;
163 	  fftw_real tmp34;
164 	  fftw_real tmp35;
165 	  ASSERT_ALIGNED_DOUBLE;
166 	  tmp10 = tmp6 + tmp9;
167 	  tmp17 = K2_000000000 * (tmp13 + tmp16);
168 	  output[8 * ostride] = tmp10 - tmp17;
169 	  output[0] = tmp10 + tmp17;
170 	  tmp34 = tmp6 - tmp9;
171 	  tmp35 = K2_000000000 * (tmp29 - tmp26);
172 	  output[4 * ostride] = tmp34 - tmp35;
173 	  output[12 * ostride] = tmp34 + tmp35;
174      }
175      {
176 	  fftw_real tmp22;
177 	  fftw_real tmp31;
178 	  fftw_real tmp32;
179 	  fftw_real tmp33;
180 	  ASSERT_ALIGNED_DOUBLE;
181 	  tmp22 = tmp18 - tmp21;
182 	  tmp31 = K1_414213562 * (tmp23 - tmp30);
183 	  output[10 * ostride] = tmp22 - tmp31;
184 	  output[2 * ostride] = tmp22 + tmp31;
185 	  tmp32 = tmp18 + tmp21;
186 	  tmp33 = K1_414213562 * (tmp23 + tmp30);
187 	  output[6 * ostride] = tmp32 - tmp33;
188 	  output[14 * ostride] = tmp32 + tmp33;
189      }
190      {
191 	  fftw_real tmp43;
192 	  fftw_real tmp50;
193 	  fftw_real tmp51;
194 	  fftw_real tmp52;
195 	  ASSERT_ALIGNED_DOUBLE;
196 	  tmp43 = tmp38 + tmp42;
197 	  tmp50 = (K1_847759065 * tmp46) - (K765366864 * tmp49);
198 	  output[9 * ostride] = tmp43 - tmp50;
199 	  output[ostride] = tmp50 + tmp43;
200 	  tmp51 = tmp42 - tmp38;
201 	  tmp52 = (K765366864 * tmp46) + (K1_847759065 * tmp49);
202 	  output[5 * ostride] = tmp51 - tmp52;
203 	  output[13 * ostride] = tmp52 + tmp51;
204      }
205      {
206 	  fftw_real tmp55;
207 	  fftw_real tmp58;
208 	  fftw_real tmp59;
209 	  fftw_real tmp60;
210 	  ASSERT_ALIGNED_DOUBLE;
211 	  tmp55 = tmp53 - tmp54;
212 	  tmp58 = (K765366864 * tmp56) - (K1_847759065 * tmp57);
213 	  output[11 * ostride] = tmp55 - tmp58;
214 	  output[3 * ostride] = tmp58 + tmp55;
215 	  tmp59 = tmp54 + tmp53;
216 	  tmp60 = (K1_847759065 * tmp56) + (K765366864 * tmp57);
217 	  output[7 * ostride] = tmp59 - tmp60;
218 	  output[15 * ostride] = tmp60 + tmp59;
219      }
220 }
221 
222 fftw_codelet_desc fftw_hc2real_16_desc = {
223      "fftw_hc2real_16",
224      (void (*)()) fftw_hc2real_16,
225      16,
226      FFTW_BACKWARD,
227      FFTW_HC2REAL,
228      367,
229      0,
230      (const int *) 0,
231 };
232