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:04 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 11 */
27 
28 /*
29  * This function contains 60 FP additions, 51 FP multiplications,
30  * (or, 59 additions, 50 multiplications, 1 fused multiply/add),
31  * 21 stack variables, and 22 memory accesses
32  */
33 static const fftw_real K2_000000000 =
34 FFTW_KONST(+2.000000000000000000000000000000000000000000000);
35 static const fftw_real K1_918985947 =
36 FFTW_KONST(+1.918985947228994779780736114132655398124909697);
37 static const fftw_real K1_309721467 =
38 FFTW_KONST(+1.309721467890570128113850144932587106367582399);
39 static const fftw_real K284629676 =
40 FFTW_KONST(+0.284629676546570280887585337232739337582102722);
41 static const fftw_real K830830026 =
42 FFTW_KONST(+0.830830026003772851058548298459246407048009821);
43 static const fftw_real K1_682507065 =
44 FFTW_KONST(+1.682507065662362337723623297838735435026584997);
45 static const fftw_real K563465113 =
46 FFTW_KONST(+0.563465113682859395422835830693233798071555798);
47 static const fftw_real K1_511499148 =
48 FFTW_KONST(+1.511499148708516567548071687944688840359434890);
49 static const fftw_real K1_979642883 =
50 FFTW_KONST(+1.979642883761865464752184075553437574753038744);
51 static const fftw_real K1_819263990 =
52 FFTW_KONST(+1.819263990709036742823430766158056920120482102);
53 static const fftw_real K1_081281634 =
54 FFTW_KONST(+1.081281634911195164215271908637383390863541216);
55 
56 /*
57  * Generator Id's :
58  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
59  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
60  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
61  */
62 
fftw_hc2real_11(const fftw_real * real_input,const fftw_real * imag_input,fftw_real * output,int real_istride,int imag_istride,int ostride)63 void fftw_hc2real_11(const fftw_real *real_input,
64 		     const fftw_real *imag_input, fftw_real *output,
65 		     int real_istride, int imag_istride, int ostride)
66 {
67      fftw_real tmp13;
68      fftw_real tmp21;
69      fftw_real tmp15;
70      fftw_real tmp17;
71      fftw_real tmp19;
72      fftw_real tmp1;
73      fftw_real tmp2;
74      fftw_real tmp6;
75      fftw_real tmp5;
76      fftw_real tmp4;
77      fftw_real tmp3;
78      fftw_real tmp7;
79      fftw_real tmp20;
80      fftw_real tmp14;
81      fftw_real tmp16;
82      fftw_real tmp18;
83      ASSERT_ALIGNED_DOUBLE;
84      {
85 	  fftw_real tmp8;
86 	  fftw_real tmp12;
87 	  fftw_real tmp9;
88 	  fftw_real tmp10;
89 	  fftw_real tmp11;
90 	  ASSERT_ALIGNED_DOUBLE;
91 	  tmp8 = imag_input[2 * imag_istride];
92 	  tmp12 = imag_input[imag_istride];
93 	  tmp9 = imag_input[4 * imag_istride];
94 	  tmp10 = imag_input[5 * imag_istride];
95 	  tmp11 = imag_input[3 * imag_istride];
96 	  tmp13 =
97 	      (K1_081281634 * tmp8) + (K1_819263990 * tmp9) -
98 	      (K1_979642883 * tmp10) - (K1_511499148 * tmp11) -
99 	      (K563465113 * tmp12);
100 	  tmp21 =
101 	      (K1_979642883 * tmp8) + (K1_819263990 * tmp10) -
102 	      (K563465113 * tmp9) - (K1_081281634 * tmp11) -
103 	      (K1_511499148 * tmp12);
104 	  tmp15 =
105 	      (K563465113 * tmp8) + (K1_819263990 * tmp11) -
106 	      (K1_511499148 * tmp10) - (K1_081281634 * tmp9) -
107 	      (K1_979642883 * tmp12);
108 	  tmp17 =
109 	      (K1_081281634 * tmp12) + (K1_819263990 * tmp8) +
110 	      (K1_979642883 * tmp11) + (K1_511499148 * tmp9) +
111 	      (K563465113 * tmp10);
112 	  tmp19 =
113 	      (K563465113 * tmp11) + (K1_979642883 * tmp9) +
114 	      (K1_081281634 * tmp10) - (K1_511499148 * tmp8) -
115 	      (K1_819263990 * tmp12);
116      }
117      tmp1 = real_input[0];
118      tmp2 = real_input[real_istride];
119      tmp6 = real_input[5 * real_istride];
120      tmp5 = real_input[4 * real_istride];
121      tmp4 = real_input[3 * real_istride];
122      tmp3 = real_input[2 * real_istride];
123      tmp7 =
124 	 tmp1 + (K1_682507065 * tmp3) + (K830830026 * tmp5) -
125 	 (K284629676 * tmp6) - (K1_309721467 * tmp4) -
126 	 (K1_918985947 * tmp2);
127      tmp20 =
128 	 tmp1 + (K1_682507065 * tmp4) + (K830830026 * tmp6) -
129 	 (K1_918985947 * tmp5) - (K284629676 * tmp3) -
130 	 (K1_309721467 * tmp2);
131      tmp14 =
132 	 tmp1 + (K830830026 * tmp4) + (K1_682507065 * tmp5) -
133 	 (K1_309721467 * tmp6) - (K1_918985947 * tmp3) -
134 	 (K284629676 * tmp2);
135      tmp16 =
136 	 tmp1 + (K1_682507065 * tmp2) + (K830830026 * tmp3) -
137 	 (K1_918985947 * tmp6) - (K1_309721467 * tmp5) -
138 	 (K284629676 * tmp4);
139      tmp18 =
140 	 tmp1 + (K830830026 * tmp2) + (K1_682507065 * tmp6) -
141 	 (K284629676 * tmp5) - (K1_918985947 * tmp4) -
142 	 (K1_309721467 * tmp3);
143      output[6 * ostride] = tmp7 - tmp13;
144      output[5 * ostride] = tmp7 + tmp13;
145      output[7 * ostride] = tmp20 - tmp21;
146      output[4 * ostride] = tmp20 + tmp21;
147      output[0] =
148 	 tmp1 + (K2_000000000 * (tmp2 + tmp3 + tmp4 + tmp5 + tmp6));
149      output[2 * ostride] = tmp18 + tmp19;
150      output[9 * ostride] = tmp18 - tmp19;
151      output[10 * ostride] = tmp16 + tmp17;
152      output[ostride] = tmp16 - tmp17;
153      output[8 * ostride] = tmp14 - tmp15;
154      output[3 * ostride] = tmp14 + tmp15;
155 }
156 
157 fftw_codelet_desc fftw_hc2real_11_desc = {
158      "fftw_hc2real_11",
159      (void (*)()) fftw_hc2real_11,
160      11,
161      FFTW_BACKWARD,
162      FFTW_HC2REAL,
163      257,
164      0,
165      (const int *) 0,
166 };
167