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