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:01 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 9 */
27
28 /*
29 * This function contains 32 FP additions, 18 FP multiplications,
30 * (or, 22 additions, 8 multiplications, 10 fused multiply/add),
31 * 22 stack variables, and 18 memory accesses
32 */
33 static const fftw_real K984807753 =
34 FFTW_KONST(+0.984807753012208059366743024589523013670643252);
35 static const fftw_real K173648177 =
36 FFTW_KONST(+0.173648177666930348851716626769314796000375677);
37 static const fftw_real K300767466 =
38 FFTW_KONST(+0.300767466360870593278543795225003852144476517);
39 static const fftw_real K1_705737063 =
40 FFTW_KONST(+1.705737063904886419256501927880148143872040591);
41 static const fftw_real K642787609 =
42 FFTW_KONST(+0.642787609686539326322643409907263432907559884);
43 static const fftw_real K766044443 =
44 FFTW_KONST(+0.766044443118978035202392650555416673935832457);
45 static const fftw_real K1_326827896 =
46 FFTW_KONST(+1.326827896337876792410842639271782594433726619);
47 static const fftw_real K1_113340798 =
48 FFTW_KONST(+1.113340798452838732905825904094046265936583811);
49 static const fftw_real K500000000 =
50 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
51 static const fftw_real K866025403 =
52 FFTW_KONST(+0.866025403784438646763723170752936183471402627);
53 static const fftw_real K2_000000000 =
54 FFTW_KONST(+2.000000000000000000000000000000000000000000000);
55 static const fftw_real K1_732050807 =
56 FFTW_KONST(+1.732050807568877293527446341505872366942805254);
57
58 /*
59 * Generator Id's :
60 * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
61 * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
62 * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
63 */
64
fftw_hc2real_9(const fftw_real * real_input,const fftw_real * imag_input,fftw_real * output,int real_istride,int imag_istride,int ostride)65 void fftw_hc2real_9(const fftw_real *real_input,
66 const fftw_real *imag_input, fftw_real *output,
67 int real_istride, int imag_istride, int ostride)
68 {
69 fftw_real tmp3;
70 fftw_real tmp26;
71 fftw_real tmp12;
72 fftw_real tmp20;
73 fftw_real tmp19;
74 fftw_real tmp8;
75 fftw_real tmp17;
76 fftw_real tmp27;
77 fftw_real tmp22;
78 fftw_real tmp28;
79 fftw_real tmp32;
80 fftw_real tmp33;
81 ASSERT_ALIGNED_DOUBLE;
82 {
83 fftw_real tmp11;
84 fftw_real tmp1;
85 fftw_real tmp2;
86 fftw_real tmp9;
87 fftw_real tmp10;
88 ASSERT_ALIGNED_DOUBLE;
89 tmp10 = imag_input[3 * imag_istride];
90 tmp11 = K1_732050807 * tmp10;
91 tmp1 = real_input[0];
92 tmp2 = real_input[3 * real_istride];
93 tmp9 = tmp1 - tmp2;
94 tmp3 = tmp1 + (K2_000000000 * tmp2);
95 tmp26 = tmp9 + tmp11;
96 tmp12 = tmp9 - tmp11;
97 }
98 {
99 fftw_real tmp4;
100 fftw_real tmp7;
101 fftw_real tmp18;
102 fftw_real tmp16;
103 fftw_real tmp13;
104 fftw_real tmp21;
105 ASSERT_ALIGNED_DOUBLE;
106 tmp4 = real_input[real_istride];
107 tmp20 = imag_input[imag_istride];
108 {
109 fftw_real tmp5;
110 fftw_real tmp6;
111 fftw_real tmp14;
112 fftw_real tmp15;
113 ASSERT_ALIGNED_DOUBLE;
114 tmp5 = real_input[4 * real_istride];
115 tmp6 = real_input[2 * real_istride];
116 tmp7 = tmp5 + tmp6;
117 tmp18 = K866025403 * (tmp5 - tmp6);
118 tmp14 = imag_input[4 * imag_istride];
119 tmp15 = imag_input[2 * imag_istride];
120 tmp16 = K866025403 * (tmp14 + tmp15);
121 tmp19 = tmp15 - tmp14;
122 }
123 tmp8 = tmp4 + tmp7;
124 tmp13 = tmp4 - (K500000000 * tmp7);
125 tmp17 = tmp13 - tmp16;
126 tmp27 = tmp13 + tmp16;
127 tmp21 = (K500000000 * tmp19) + tmp20;
128 tmp22 = tmp18 + tmp21;
129 tmp28 = tmp21 - tmp18;
130 }
131 output[0] = tmp3 + (K2_000000000 * tmp8);
132 tmp32 = tmp3 - tmp8;
133 tmp33 = K1_732050807 * (tmp20 - tmp19);
134 output[3 * ostride] = tmp32 - tmp33;
135 output[6 * ostride] = tmp32 + tmp33;
136 {
137 fftw_real tmp25;
138 fftw_real tmp23;
139 fftw_real tmp24;
140 fftw_real tmp31;
141 fftw_real tmp29;
142 fftw_real tmp30;
143 ASSERT_ALIGNED_DOUBLE;
144 tmp25 = (K1_113340798 * tmp17) + (K1_326827896 * tmp22);
145 tmp23 = (K766044443 * tmp17) - (K642787609 * tmp22);
146 tmp24 = tmp12 - tmp23;
147 output[ostride] = tmp12 + (K2_000000000 * tmp23);
148 output[7 * ostride] = tmp24 + tmp25;
149 output[4 * ostride] = tmp24 - tmp25;
150 tmp31 = (K1_705737063 * tmp27) + (K300767466 * tmp28);
151 tmp29 = (K173648177 * tmp27) - (K984807753 * tmp28);
152 tmp30 = tmp26 - tmp29;
153 output[2 * ostride] = tmp26 + (K2_000000000 * tmp29);
154 output[8 * ostride] = tmp30 + tmp31;
155 output[5 * ostride] = tmp30 - tmp31;
156 }
157 }
158
159 fftw_codelet_desc fftw_hc2real_9_desc = {
160 "fftw_hc2real_9",
161 (void (*)()) fftw_hc2real_9,
162 9,
163 FFTW_BACKWARD,
164 FFTW_HC2REAL,
165 213,
166 0,
167 (const int *) 0,
168 };
169