Rev 107 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Copyright (c) 1997-1999 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 Tue May 18 13:54:36 EDT 1999 */ |
||
22 | |||
107 | pj | 23 | #include <fftw-int.h> |
24 | #include <fftw.h> |
||
2 | pj | 25 | |
26 | /* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 12 */ |
||
27 | |||
28 | /* |
||
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 |
||
32 | */ |
||
33 | static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627); |
||
34 | static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000); |
||
35 | |||
36 | /* |
||
37 | * Generator Id's : |
||
107 | pj | 38 | * $Id: frc_12.c,v 1.2 2003-03-24 11:14:58 pj Exp $ |
39 | * $Id: frc_12.c,v 1.2 2003-03-24 11:14:58 pj Exp $ |
||
40 | * $Id: frc_12.c,v 1.2 2003-03-24 11:14:58 pj Exp $ |
||
2 | pj | 41 | */ |
42 | |||
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) |
||
44 | { |
||
45 | fftw_real tmp5; |
||
46 | fftw_real tmp25; |
||
47 | fftw_real tmp11; |
||
48 | fftw_real tmp23; |
||
49 | fftw_real tmp30; |
||
50 | fftw_real tmp35; |
||
51 | fftw_real tmp10; |
||
52 | fftw_real tmp26; |
||
53 | fftw_real tmp12; |
||
54 | fftw_real tmp18; |
||
55 | fftw_real tmp29; |
||
56 | fftw_real tmp34; |
||
57 | fftw_real tmp31; |
||
58 | fftw_real tmp32; |
||
59 | ASSERT_ALIGNED_DOUBLE(); |
||
60 | { |
||
61 | fftw_real tmp1; |
||
62 | fftw_real tmp2; |
||
63 | fftw_real tmp3; |
||
64 | fftw_real tmp4; |
||
65 | ASSERT_ALIGNED_DOUBLE(); |
||
66 | tmp1 = input[0]; |
||
67 | tmp2 = input[4 * istride]; |
||
68 | tmp3 = input[8 * istride]; |
||
69 | tmp4 = tmp2 + tmp3; |
||
70 | tmp5 = tmp1 + tmp4; |
||
71 | tmp25 = tmp1 - (K500000000 * tmp4); |
||
72 | tmp11 = tmp3 - tmp2; |
||
73 | } |
||
74 | { |
||
75 | fftw_real tmp19; |
||
76 | fftw_real tmp20; |
||
77 | fftw_real tmp21; |
||
78 | fftw_real tmp22; |
||
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; |
||
87 | } |
||
88 | { |
||
89 | fftw_real tmp6; |
||
90 | fftw_real tmp7; |
||
91 | fftw_real tmp8; |
||
92 | fftw_real tmp9; |
||
93 | ASSERT_ALIGNED_DOUBLE(); |
||
94 | tmp6 = input[6 * istride]; |
||
95 | tmp7 = input[10 * istride]; |
||
96 | tmp8 = input[2 * istride]; |
||
97 | tmp9 = tmp7 + tmp8; |
||
98 | tmp10 = tmp6 + tmp9; |
||
99 | tmp26 = tmp6 - (K500000000 * tmp9); |
||
100 | tmp12 = tmp8 - tmp7; |
||
101 | } |
||
102 | { |
||
103 | fftw_real tmp14; |
||
104 | fftw_real tmp15; |
||
105 | fftw_real tmp16; |
||
106 | fftw_real tmp17; |
||
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; |
||
115 | } |
||
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; |
||
122 | { |
||
123 | fftw_real tmp37; |
||
124 | fftw_real tmp38; |
||
125 | fftw_real tmp33; |
||
126 | fftw_real tmp36; |
||
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; |
||
136 | } |
||
137 | { |
||
138 | fftw_real tmp27; |
||
139 | fftw_real tmp28; |
||
140 | fftw_real tmp13; |
||
141 | fftw_real tmp24; |
||
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); |
||
151 | } |
||
152 | } |
||
153 | |||
154 | fftw_codelet_desc fftw_real2hc_12_desc = |
||
155 | { |
||
156 | "fftw_real2hc_12", |
||
157 | (void (*)()) fftw_real2hc_12, |
||
158 | 12, |
||
159 | FFTW_FORWARD, |
||
160 | FFTW_REAL2HC, |
||
161 | 266, |
||
162 | 0, |
||
163 | (const int *) 0, |
||
164 | }; |