2 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
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.
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.
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
20 /* This file was automatically generated --- DO NOT EDIT */
21 /* Generated on Tue May 18 13:55:06 EDT 1999 */
26 /* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -hc2real 9 */
29 * This function contains 32 FP additions, 18 FP multiplications,
30 * (or, 22 additions, 8 multiplications, 10 fused multiply/add),
31 * 22 stack variables, and 18 memory accesses
33 static const fftw_real K984807753
= FFTW_KONST(+0.984807753012208059366743024589523013670643252);
34 static const fftw_real K173648177
= FFTW_KONST(+0.173648177666930348851716626769314796000375677);
35 static const fftw_real K300767466
= FFTW_KONST(+0.300767466360870593278543795225003852144476517);
36 static const fftw_real K1_705737063
= FFTW_KONST(+1.705737063904886419256501927880148143872040591);
37 static const fftw_real K642787609
= FFTW_KONST(+0.642787609686539326322643409907263432907559884);
38 static const fftw_real K766044443
= FFTW_KONST(+0.766044443118978035202392650555416673935832457);
39 static const fftw_real K1_326827896
= FFTW_KONST(+1.326827896337876792410842639271782594433726619);
40 static const fftw_real K1_113340798
= FFTW_KONST(+1.113340798452838732905825904094046265936583811);
41 static const fftw_real K500000000
= FFTW_KONST(+0.500000000000000000000000000000000000000000000);
42 static const fftw_real K866025403
= FFTW_KONST(+0.866025403784438646763723170752936183471402627);
43 static const fftw_real K2_000000000
= FFTW_KONST(+2.000000000000000000000000000000000000000000000);
44 static const fftw_real K1_732050807
= FFTW_KONST(+1.732050807568877293527446341505872366942805254);
53 void fftw_hc2real_9(const fftw_real
*real_input
, const fftw_real
*imag_input
, fftw_real
*output
, int real_istride
, int imag_istride
, int ostride
)
67 ASSERT_ALIGNED_DOUBLE();
74 ASSERT_ALIGNED_DOUBLE();
75 tmp10
= imag_input
[3 * imag_istride
];
76 tmp11
= K1_732050807
* tmp10
;
78 tmp2
= real_input
[3 * real_istride
];
80 tmp3
= tmp1
+ (K2_000000000
* tmp2
);
91 ASSERT_ALIGNED_DOUBLE();
92 tmp4
= real_input
[real_istride
];
93 tmp20
= imag_input
[imag_istride
];
99 ASSERT_ALIGNED_DOUBLE();
100 tmp5
= real_input
[4 * real_istride
];
101 tmp6
= real_input
[2 * real_istride
];
103 tmp18
= K866025403
* (tmp5
- tmp6
);
104 tmp14
= imag_input
[4 * imag_istride
];
105 tmp15
= imag_input
[2 * imag_istride
];
106 tmp16
= K866025403
* (tmp14
+ tmp15
);
107 tmp19
= tmp15
- tmp14
;
110 tmp13
= tmp4
- (K500000000
* tmp7
);
111 tmp17
= tmp13
- tmp16
;
112 tmp27
= tmp13
+ tmp16
;
113 tmp21
= (K500000000
* tmp19
) + tmp20
;
114 tmp22
= tmp18
+ tmp21
;
115 tmp28
= tmp21
- tmp18
;
117 output
[0] = tmp3
+ (K2_000000000
* tmp8
);
119 tmp33
= K1_732050807
* (tmp20
- tmp19
);
120 output
[3 * ostride
] = tmp32
- tmp33
;
121 output
[6 * ostride
] = tmp32
+ tmp33
;
129 ASSERT_ALIGNED_DOUBLE();
130 tmp25
= (K1_113340798
* tmp17
) + (K1_326827896
* tmp22
);
131 tmp23
= (K766044443
* tmp17
) - (K642787609
* tmp22
);
132 tmp24
= tmp12
- tmp23
;
133 output
[ostride
] = tmp12
+ (K2_000000000
* tmp23
);
134 output
[7 * ostride
] = tmp24
+ tmp25
;
135 output
[4 * ostride
] = tmp24
- tmp25
;
136 tmp31
= (K1_705737063
* tmp27
) + (K300767466
* tmp28
);
137 tmp29
= (K173648177
* tmp27
) - (K984807753
* tmp28
);
138 tmp30
= tmp26
- tmp29
;
139 output
[2 * ostride
] = tmp26
+ (K2_000000000
* tmp29
);
140 output
[8 * ostride
] = tmp30
+ tmp31
;
141 output
[5 * ostride
] = tmp30
- tmp31
;
145 fftw_codelet_desc fftw_hc2real_9_desc
=
148 (void (*)()) fftw_hc2real_9
,