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:06:56 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 5 */
27 
28 /*
29  * This function contains 12 FP additions, 7 FP multiplications,
30  * (or, 8 additions, 3 multiplications, 4 fused multiply/add),
31  * 12 stack variables, and 10 memory accesses
32  */
33 static const fftw_real K2_000000000 =
34 FFTW_KONST(+2.000000000000000000000000000000000000000000000);
35 static const fftw_real K1_118033988 =
36 FFTW_KONST(+1.118033988749894848204586834365638117720309180);
37 static const fftw_real K500000000 =
38 FFTW_KONST(+0.500000000000000000000000000000000000000000000);
39 static const fftw_real K1_902113032 =
40 FFTW_KONST(+1.902113032590307144232878666758764286811397268);
41 static const fftw_real K1_175570504 =
42 FFTW_KONST(+1.175570504584946258337411909278145537195304875);
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_5(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_5(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 tmp10;
56      fftw_real tmp12;
57      fftw_real tmp1;
58      fftw_real tmp4;
59      fftw_real tmp5;
60      fftw_real tmp6;
61      fftw_real tmp11;
62      fftw_real tmp7;
63      ASSERT_ALIGNED_DOUBLE;
64      {
65 	  fftw_real tmp8;
66 	  fftw_real tmp9;
67 	  fftw_real tmp2;
68 	  fftw_real tmp3;
69 	  ASSERT_ALIGNED_DOUBLE;
70 	  tmp8 = imag_input[imag_istride];
71 	  tmp9 = imag_input[2 * imag_istride];
72 	  tmp10 = (K1_175570504 * tmp8) - (K1_902113032 * tmp9);
73 	  tmp12 = (K1_902113032 * tmp8) + (K1_175570504 * tmp9);
74 	  tmp1 = real_input[0];
75 	  tmp2 = real_input[real_istride];
76 	  tmp3 = real_input[2 * real_istride];
77 	  tmp4 = tmp2 + tmp3;
78 	  tmp5 = tmp1 - (K500000000 * tmp4);
79 	  tmp6 = K1_118033988 * (tmp2 - tmp3);
80      }
81      output[0] = tmp1 + (K2_000000000 * tmp4);
82      tmp11 = tmp6 + tmp5;
83      output[ostride] = tmp11 - tmp12;
84      output[4 * ostride] = tmp11 + tmp12;
85      tmp7 = tmp5 - tmp6;
86      output[2 * ostride] = tmp7 - tmp10;
87      output[3 * ostride] = tmp7 + tmp10;
88 }
89 
90 fftw_codelet_desc fftw_hc2real_5_desc = {
91      "fftw_hc2real_5",
92      (void (*)()) fftw_hc2real_5,
93      5,
94      FFTW_BACKWARD,
95      FFTW_HC2REAL,
96      125,
97      0,
98      (const int *) 0,
99 };
100