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:07 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 12 */
27 
28 /*
29  * This function contains 38 FP additions, 10 FP multiplications,
30  * (or, 34 additions, 6 multiplications, 4 fused multiply/add),
31  * 22 stack variables, and 24 memory accesses
32  */
33 static const fftw_real K1_732050807 =
34 FFTW_KONST(+1.732050807568877293527446341505872366942805254);
35 static const fftw_real K2_000000000 =
36 FFTW_KONST(+2.000000000000000000000000000000000000000000000);
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 
fftw_hc2real_12(const fftw_real * real_input,const fftw_real * imag_input,fftw_real * output,int real_istride,int imag_istride,int ostride)45 void fftw_hc2real_12(const fftw_real *real_input,
46 		     const fftw_real *imag_input, fftw_real *output,
47 		     int real_istride, int imag_istride, int ostride)
48 {
49      fftw_real tmp8;
50      fftw_real tmp11;
51      fftw_real tmp22;
52      fftw_real tmp36;
53      fftw_real tmp32;
54      fftw_real tmp33;
55      fftw_real tmp25;
56      fftw_real tmp37;
57      fftw_real tmp3;
58      fftw_real tmp27;
59      fftw_real tmp16;
60      fftw_real tmp6;
61      fftw_real tmp28;
62      fftw_real tmp20;
63      ASSERT_ALIGNED_DOUBLE;
64      {
65 	  fftw_real tmp9;
66 	  fftw_real tmp10;
67 	  fftw_real tmp23;
68 	  fftw_real tmp24;
69 	  ASSERT_ALIGNED_DOUBLE;
70 	  tmp8 = real_input[3 * real_istride];
71 	  tmp9 = real_input[5 * real_istride];
72 	  tmp10 = real_input[real_istride];
73 	  tmp11 = tmp9 + tmp10;
74 	  tmp22 = (K2_000000000 * tmp8) - tmp11;
75 	  tmp36 = K1_732050807 * (tmp9 - tmp10);
76 	  tmp32 = imag_input[3 * imag_istride];
77 	  tmp23 = imag_input[5 * imag_istride];
78 	  tmp24 = imag_input[imag_istride];
79 	  tmp33 = tmp23 + tmp24;
80 	  tmp25 = K1_732050807 * (tmp23 - tmp24);
81 	  tmp37 = tmp33 + (K2_000000000 * tmp32);
82      }
83      {
84 	  fftw_real tmp15;
85 	  fftw_real tmp1;
86 	  fftw_real tmp2;
87 	  fftw_real tmp13;
88 	  fftw_real tmp14;
89 	  ASSERT_ALIGNED_DOUBLE;
90 	  tmp14 = imag_input[4 * imag_istride];
91 	  tmp15 = K1_732050807 * tmp14;
92 	  tmp1 = real_input[0];
93 	  tmp2 = real_input[4 * real_istride];
94 	  tmp13 = tmp1 - tmp2;
95 	  tmp3 = tmp1 + (K2_000000000 * tmp2);
96 	  tmp27 = tmp13 - tmp15;
97 	  tmp16 = tmp13 + tmp15;
98      }
99      {
100 	  fftw_real tmp19;
101 	  fftw_real tmp4;
102 	  fftw_real tmp5;
103 	  fftw_real tmp17;
104 	  fftw_real tmp18;
105 	  ASSERT_ALIGNED_DOUBLE;
106 	  tmp18 = imag_input[2 * imag_istride];
107 	  tmp19 = K1_732050807 * tmp18;
108 	  tmp4 = real_input[6 * real_istride];
109 	  tmp5 = real_input[2 * real_istride];
110 	  tmp17 = tmp4 - tmp5;
111 	  tmp6 = tmp4 + (K2_000000000 * tmp5);
112 	  tmp28 = tmp17 + tmp19;
113 	  tmp20 = tmp17 - tmp19;
114      }
115      {
116 	  fftw_real tmp7;
117 	  fftw_real tmp12;
118 	  fftw_real tmp39;
119 	  fftw_real tmp40;
120 	  ASSERT_ALIGNED_DOUBLE;
121 	  tmp7 = tmp3 + tmp6;
122 	  tmp12 = K2_000000000 * (tmp8 + tmp11);
123 	  output[6 * ostride] = tmp7 - tmp12;
124 	  output[0] = tmp7 + tmp12;
125 	  {
126 	       fftw_real tmp31;
127 	       fftw_real tmp34;
128 	       fftw_real tmp21;
129 	       fftw_real tmp26;
130 	       ASSERT_ALIGNED_DOUBLE;
131 	       tmp31 = tmp3 - tmp6;
132 	       tmp34 = K2_000000000 * (tmp32 - tmp33);
133 	       output[9 * ostride] = tmp31 - tmp34;
134 	       output[3 * ostride] = tmp31 + tmp34;
135 	       tmp21 = tmp16 + tmp20;
136 	       tmp26 = tmp22 - tmp25;
137 	       output[2 * ostride] = tmp21 - tmp26;
138 	       output[8 * ostride] = tmp21 + tmp26;
139 	  }
140 	  tmp39 = tmp16 - tmp20;
141 	  tmp40 = tmp37 - tmp36;
142 	  output[5 * ostride] = tmp39 - tmp40;
143 	  output[11 * ostride] = tmp39 + tmp40;
144 	  {
145 	       fftw_real tmp35;
146 	       fftw_real tmp38;
147 	       fftw_real tmp29;
148 	       fftw_real tmp30;
149 	       ASSERT_ALIGNED_DOUBLE;
150 	       tmp35 = tmp27 - tmp28;
151 	       tmp38 = tmp36 + tmp37;
152 	       output[ostride] = tmp35 - tmp38;
153 	       output[7 * ostride] = tmp35 + tmp38;
154 	       tmp29 = tmp27 + tmp28;
155 	       tmp30 = tmp22 + tmp25;
156 	       output[10 * ostride] = tmp29 - tmp30;
157 	       output[4 * ostride] = tmp29 + tmp30;
158 	  }
159      }
160 }
161 
162 fftw_codelet_desc fftw_hc2real_12_desc = {
163      "fftw_hc2real_12",
164      (void (*)()) fftw_hc2real_12,
165      12,
166      FFTW_BACKWARD,
167      FFTW_HC2REAL,
168      279,
169      0,
170      (const int *) 0,
171 };
172