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