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:57 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 11 */
27 
28 /*
29  * This function contains 60 FP additions, 50 FP multiplications,
30  * (or, 60 additions, 50 multiplications, 0 fused multiply/add),
31  * 17 stack variables, and 22 memory accesses
32  */
33 static const fftw_real K654860733 =
34 FFTW_KONST(+0.654860733945285064056925072466293553183791199);
35 static const fftw_real K142314838 =
36 FFTW_KONST(+0.142314838273285140443792668616369668791051361);
37 static const fftw_real K959492973 =
38 FFTW_KONST(+0.959492973614497389890368057066327699062454848);
39 static const fftw_real K415415013 =
40 FFTW_KONST(+0.415415013001886425529274149229623203524004910);
41 static const fftw_real K841253532 =
42 FFTW_KONST(+0.841253532831181168861811648919367717513292498);
43 static const fftw_real K989821441 =
44 FFTW_KONST(+0.989821441880932732376092037776718787376519372);
45 static const fftw_real K909631995 =
46 FFTW_KONST(+0.909631995354518371411715383079028460060241051);
47 static const fftw_real K755749574 =
48 FFTW_KONST(+0.755749574354258283774035843972344420179717445);
49 static const fftw_real K540640817 =
50 FFTW_KONST(+0.540640817455597582107635954318691695431770608);
51 static const fftw_real K281732556 =
52 FFTW_KONST(+0.281732556841429697711417915346616899035777899);
53 
54 /*
55  * Generator Id's :
56  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
57  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
58  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
59  */
60 
fftw_real2hc_11(const fftw_real * input,fftw_real * real_output,fftw_real * imag_output,int istride,int real_ostride,int imag_ostride)61 void fftw_real2hc_11(const fftw_real *input, fftw_real *real_output,
62 		     fftw_real *imag_output, int istride, int real_ostride,
63 		     int imag_ostride)
64 {
65      fftw_real tmp1;
66      fftw_real tmp4;
67      fftw_real tmp20;
68      fftw_real tmp16;
69      fftw_real tmp21;
70      fftw_real tmp13;
71      fftw_real tmp17;
72      fftw_real tmp10;
73      fftw_real tmp19;
74      fftw_real tmp7;
75      fftw_real tmp18;
76      fftw_real tmp11;
77      fftw_real tmp12;
78      ASSERT_ALIGNED_DOUBLE;
79      tmp1 = input[0];
80      {
81 	  fftw_real tmp2;
82 	  fftw_real tmp3;
83 	  fftw_real tmp14;
84 	  fftw_real tmp15;
85 	  ASSERT_ALIGNED_DOUBLE;
86 	  tmp2 = input[5 * istride];
87 	  tmp3 = input[6 * istride];
88 	  tmp4 = tmp2 + tmp3;
89 	  tmp20 = tmp3 - tmp2;
90 	  tmp14 = input[2 * istride];
91 	  tmp15 = input[9 * istride];
92 	  tmp16 = tmp14 + tmp15;
93 	  tmp21 = tmp15 - tmp14;
94      }
95      tmp11 = input[4 * istride];
96      tmp12 = input[7 * istride];
97      tmp13 = tmp11 + tmp12;
98      tmp17 = tmp12 - tmp11;
99      {
100 	  fftw_real tmp8;
101 	  fftw_real tmp9;
102 	  fftw_real tmp5;
103 	  fftw_real tmp6;
104 	  ASSERT_ALIGNED_DOUBLE;
105 	  tmp8 = input[istride];
106 	  tmp9 = input[10 * istride];
107 	  tmp10 = tmp8 + tmp9;
108 	  tmp19 = tmp9 - tmp8;
109 	  tmp5 = input[3 * istride];
110 	  tmp6 = input[8 * istride];
111 	  tmp7 = tmp5 + tmp6;
112 	  tmp18 = tmp6 - tmp5;
113      }
114      imag_output[4 * imag_ostride] =
115 	 (K281732556 * tmp17) + (K540640817 * tmp18) +
116 	 (K755749574 * tmp19) - (K909631995 * tmp20) -
117 	 (K989821441 * tmp21);
118      imag_output[imag_ostride] =
119 	 (K909631995 * tmp21) + (K755749574 * tmp17) +
120 	 (K281732556 * tmp20) + (K989821441 * tmp18) +
121 	 (K540640817 * tmp19);
122      imag_output[5 * imag_ostride] =
123 	 (K989821441 * tmp20) + (K755749574 * tmp18) +
124 	 (K281732556 * tmp19) - (K909631995 * tmp17) -
125 	 (K540640817 * tmp21);
126      imag_output[2 * imag_ostride] =
127 	 (K755749574 * tmp21) + (K909631995 * tmp19) -
128 	 (K281732556 * tmp18) - (K540640817 * tmp20) -
129 	 (K989821441 * tmp17);
130      imag_output[3 * imag_ostride] =
131 	 (K540640817 * tmp17) + (K755749574 * tmp20) +
132 	 (K989821441 * tmp19) - (K909631995 * tmp18) -
133 	 (K281732556 * tmp21);
134      real_output[2 * real_ostride] =
135 	 tmp1 + (K841253532 * tmp4) + (K415415013 * tmp10) -
136 	 (K959492973 * tmp7) - (K142314838 * tmp13) - (K654860733 * tmp16);
137      real_output[4 * real_ostride] =
138 	 tmp1 + (K415415013 * tmp4) + (K841253532 * tmp7) -
139 	 (K654860733 * tmp10) - (K959492973 * tmp13) -
140 	 (K142314838 * tmp16);
141      real_output[5 * real_ostride] =
142 	 tmp1 + (K841253532 * tmp16) + (K415415013 * tmp13) -
143 	 (K959492973 * tmp10) - (K654860733 * tmp7) - (K142314838 * tmp4);
144      real_output[real_ostride] =
145 	 tmp1 + (K415415013 * tmp16) + (K841253532 * tmp10) -
146 	 (K142314838 * tmp7) - (K959492973 * tmp4) - (K654860733 * tmp13);
147      real_output[3 * real_ostride] =
148 	 tmp1 + (K841253532 * tmp13) + (K415415013 * tmp7) -
149 	 (K142314838 * tmp10) - (K654860733 * tmp4) - (K959492973 * tmp16);
150      real_output[0] = tmp1 + tmp16 + tmp13 + tmp4 + tmp7 + tmp10;
151 }
152 
153 fftw_codelet_desc fftw_real2hc_11_desc = {
154      "fftw_real2hc_11",
155      (void (*)()) fftw_real2hc_11,
156      11,
157      FFTW_FORWARD,
158      FFTW_REAL2HC,
159      244,
160      0,
161      (const int *) 0,
162 };
163