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:54 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 8 */
27 
28 /*
29  * This function contains 20 FP additions, 2 FP multiplications,
30  * (or, 20 additions, 2 multiplications, 0 fused multiply/add),
31  * 12 stack variables, and 16 memory accesses
32  */
33 static const fftw_real K707106781 =
34 FFTW_KONST(+0.707106781186547524400844362104849039284835938);
35 
36 /*
37  * Generator Id's :
38  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
39  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
40  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
41  */
42 
fftw_real2hc_8(const fftw_real * input,fftw_real * real_output,fftw_real * imag_output,int istride,int real_ostride,int imag_ostride)43 void fftw_real2hc_8(const fftw_real *input, fftw_real *real_output,
44 		    fftw_real *imag_output, int istride, int real_ostride,
45 		    int imag_ostride)
46 {
47      fftw_real tmp3;
48      fftw_real tmp7;
49      fftw_real tmp13;
50      fftw_real tmp19;
51      fftw_real tmp6;
52      fftw_real tmp16;
53      fftw_real tmp10;
54      fftw_real tmp18;
55      ASSERT_ALIGNED_DOUBLE;
56      {
57 	  fftw_real tmp1;
58 	  fftw_real tmp2;
59 	  fftw_real tmp11;
60 	  fftw_real tmp12;
61 	  ASSERT_ALIGNED_DOUBLE;
62 	  tmp1 = input[0];
63 	  tmp2 = input[4 * istride];
64 	  tmp3 = tmp1 + tmp2;
65 	  tmp7 = tmp1 - tmp2;
66 	  tmp11 = input[7 * istride];
67 	  tmp12 = input[3 * istride];
68 	  tmp13 = tmp11 - tmp12;
69 	  tmp19 = tmp11 + tmp12;
70      }
71      {
72 	  fftw_real tmp4;
73 	  fftw_real tmp5;
74 	  fftw_real tmp8;
75 	  fftw_real tmp9;
76 	  ASSERT_ALIGNED_DOUBLE;
77 	  tmp4 = input[2 * istride];
78 	  tmp5 = input[6 * istride];
79 	  tmp6 = tmp4 + tmp5;
80 	  tmp16 = tmp4 - tmp5;
81 	  tmp8 = input[istride];
82 	  tmp9 = input[5 * istride];
83 	  tmp10 = tmp8 - tmp9;
84 	  tmp18 = tmp8 + tmp9;
85      }
86      {
87 	  fftw_real tmp17;
88 	  fftw_real tmp20;
89 	  fftw_real tmp14;
90 	  fftw_real tmp15;
91 	  ASSERT_ALIGNED_DOUBLE;
92 	  real_output[2 * real_ostride] = tmp3 - tmp6;
93 	  tmp17 = tmp3 + tmp6;
94 	  tmp20 = tmp18 + tmp19;
95 	  real_output[4 * real_ostride] = tmp17 - tmp20;
96 	  real_output[0] = tmp17 + tmp20;
97 	  imag_output[2 * imag_ostride] = tmp19 - tmp18;
98 	  tmp14 = K707106781 * (tmp10 + tmp13);
99 	  real_output[3 * real_ostride] = tmp7 - tmp14;
100 	  real_output[real_ostride] = tmp7 + tmp14;
101 	  tmp15 = K707106781 * (tmp13 - tmp10);
102 	  imag_output[imag_ostride] = tmp15 - tmp16;
103 	  imag_output[3 * imag_ostride] = tmp16 + tmp15;
104      }
105 }
106 
107 fftw_codelet_desc fftw_real2hc_8_desc = {
108      "fftw_real2hc_8",
109      (void (*)()) fftw_real2hc_8,
110      8,
111      FFTW_FORWARD,
112      FFTW_REAL2HC,
113      178,
114      0,
115      (const int *) 0,
116 };
117