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:54:36 EDT 1999 */
26 /* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 12 */
29 * This function contains 38 FP additions, 8 FP multiplications,
30 * (or, 34 additions, 4 multiplications, 4 fused multiply/add),
31 * 18 stack variables, and 24 memory accesses
33 static const fftw_real K866025403
= FFTW_KONST(+0.866025403784438646763723170752936183471402627);
34 static const fftw_real K500000000
= FFTW_KONST(+0.500000000000000000000000000000000000000000000);
43 void fftw_real2hc_12(const fftw_real
*input
, fftw_real
*real_output
, fftw_real
*imag_output
, int istride
, int real_ostride
, int imag_ostride
)
59 ASSERT_ALIGNED_DOUBLE();
65 ASSERT_ALIGNED_DOUBLE();
67 tmp2
= input
[4 * istride
];
68 tmp3
= input
[8 * istride
];
71 tmp25
= tmp1
- (K500000000
* tmp4
);
79 ASSERT_ALIGNED_DOUBLE();
80 tmp19
= input
[9 * istride
];
81 tmp20
= input
[istride
];
82 tmp21
= input
[5 * istride
];
83 tmp22
= tmp20
+ tmp21
;
84 tmp23
= tmp19
- (K500000000
* tmp22
);
85 tmp30
= tmp19
+ tmp22
;
86 tmp35
= tmp21
- tmp20
;
93 ASSERT_ALIGNED_DOUBLE();
94 tmp6
= input
[6 * istride
];
95 tmp7
= input
[10 * istride
];
96 tmp8
= input
[2 * istride
];
99 tmp26
= tmp6
- (K500000000
* tmp9
);
107 ASSERT_ALIGNED_DOUBLE();
108 tmp14
= input
[3 * istride
];
109 tmp15
= input
[7 * istride
];
110 tmp16
= input
[11 * istride
];
111 tmp17
= tmp15
+ tmp16
;
112 tmp18
= tmp14
- (K500000000
* tmp17
);
113 tmp29
= tmp14
+ tmp17
;
114 tmp34
= tmp16
- tmp15
;
116 real_output
[3 * real_ostride
] = tmp5
- tmp10
;
117 imag_output
[3 * imag_ostride
] = tmp29
- tmp30
;
118 tmp31
= tmp5
+ tmp10
;
119 tmp32
= tmp29
+ tmp30
;
120 real_output
[6 * real_ostride
] = tmp31
- tmp32
;
121 real_output
[0] = tmp31
+ tmp32
;
127 ASSERT_ALIGNED_DOUBLE();
128 tmp37
= tmp34
+ tmp35
;
129 tmp38
= tmp11
+ tmp12
;
130 imag_output
[2 * imag_ostride
] = K866025403
* (tmp37
- tmp38
);
131 imag_output
[4 * imag_ostride
] = K866025403
* (tmp38
+ tmp37
);
132 tmp33
= tmp25
- tmp26
;
133 tmp36
= K866025403
* (tmp34
- tmp35
);
134 real_output
[5 * real_ostride
] = tmp33
- tmp36
;
135 real_output
[real_ostride
] = tmp33
+ tmp36
;
142 ASSERT_ALIGNED_DOUBLE();
143 tmp27
= tmp25
+ tmp26
;
144 tmp28
= tmp18
+ tmp23
;
145 real_output
[2 * real_ostride
] = tmp27
- tmp28
;
146 real_output
[4 * real_ostride
] = tmp27
+ tmp28
;
147 tmp13
= K866025403
* (tmp11
- tmp12
);
148 tmp24
= tmp18
- tmp23
;
149 imag_output
[imag_ostride
] = tmp13
- tmp24
;
150 imag_output
[5 * imag_ostride
] = -(tmp13
+ tmp24
);
154 fftw_codelet_desc fftw_real2hc_12_desc
=
157 (void (*)()) fftw_real2hc_12
,