Subversion Repositories shark

Rev

Rev 3 | 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:55:11 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 -hc2real 15 */
27
 
28
/*
29
 * This function contains 64 FP additions, 31 FP multiplications,
30
 * (or, 47 additions, 14 multiplications, 17 fused multiply/add),
31
 * 36 stack variables, and 30 memory accesses
32
 */
33
static const fftw_real K1_118033988 = FFTW_KONST(+1.118033988749894848204586834365638117720309180);
34
static const fftw_real K1_902113032 = FFTW_KONST(+1.902113032590307144232878666758764286811397268);
35
static const fftw_real K1_175570504 = FFTW_KONST(+1.175570504584946258337411909278145537195304875);
36
static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000);
37
static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627);
38
static const fftw_real K2_000000000 = FFTW_KONST(+2.000000000000000000000000000000000000000000000);
39
static const fftw_real K1_732050807 = FFTW_KONST(+1.732050807568877293527446341505872366942805254);
40
 
41
/*
42
 * Generator Id's :
107 pj 43
 * $Id: fcr_15.c,v 1.2 2003-03-24 11:14:55 pj Exp $
44
 * $Id: fcr_15.c,v 1.2 2003-03-24 11:14:55 pj Exp $
45
 * $Id: fcr_15.c,v 1.2 2003-03-24 11:14:55 pj Exp $
2 pj 46
 */
47
 
48
void fftw_hc2real_15(const fftw_real *real_input, const fftw_real *imag_input, fftw_real *output, int real_istride, int imag_istride, int ostride)
49
{
50
     fftw_real tmp3;
51
     fftw_real tmp30;
52
     fftw_real tmp18;
53
     fftw_real tmp37;
54
     fftw_real tmp61;
55
     fftw_real tmp62;
56
     fftw_real tmp45;
57
     fftw_real tmp40;
58
     fftw_real tmp23;
59
     fftw_real tmp31;
60
     fftw_real tmp42;
61
     fftw_real tmp28;
62
     fftw_real tmp32;
63
     fftw_real tmp8;
64
     fftw_real tmp13;
65
     fftw_real tmp14;
66
     ASSERT_ALIGNED_DOUBLE();
67
     {
68
          fftw_real tmp17;
69
          fftw_real tmp1;
70
          fftw_real tmp2;
71
          fftw_real tmp15;
72
          fftw_real tmp16;
73
          ASSERT_ALIGNED_DOUBLE();
74
          tmp16 = imag_input[5 * imag_istride];
75
          tmp17 = K1_732050807 * tmp16;
76
          tmp1 = real_input[0];
77
          tmp2 = real_input[5 * real_istride];
78
          tmp15 = tmp1 - tmp2;
79
          tmp3 = tmp1 + (K2_000000000 * tmp2);
80
          tmp30 = tmp15 - tmp17;
81
          tmp18 = tmp15 + tmp17;
82
     }
83
     {
84
          fftw_real tmp4;
85
          fftw_real tmp39;
86
          fftw_real tmp5;
87
          fftw_real tmp6;
88
          fftw_real tmp7;
89
          fftw_real tmp22;
90
          fftw_real tmp38;
91
          fftw_real tmp9;
92
          fftw_real tmp44;
93
          fftw_real tmp10;
94
          fftw_real tmp11;
95
          fftw_real tmp12;
96
          fftw_real tmp27;
97
          fftw_real tmp43;
98
          fftw_real tmp19;
99
          fftw_real tmp24;
100
          ASSERT_ALIGNED_DOUBLE();
101
          {
102
               fftw_real tmp20;
103
               fftw_real tmp21;
104
               fftw_real tmp25;
105
               fftw_real tmp26;
106
               ASSERT_ALIGNED_DOUBLE();
107
               tmp4 = real_input[3 * real_istride];
108
               tmp39 = imag_input[3 * imag_istride];
109
               tmp5 = real_input[7 * real_istride];
110
               tmp6 = real_input[2 * real_istride];
111
               tmp7 = tmp5 + tmp6;
112
               tmp20 = imag_input[7 * imag_istride];
113
               tmp21 = imag_input[2 * imag_istride];
114
               tmp22 = K866025403 * (tmp20 - tmp21);
115
               tmp38 = tmp20 + tmp21;
116
               tmp9 = real_input[6 * real_istride];
117
               tmp44 = imag_input[6 * imag_istride];
118
               tmp10 = real_input[4 * real_istride];
119
               tmp11 = real_input[real_istride];
120
               tmp12 = tmp10 + tmp11;
121
               tmp25 = imag_input[4 * imag_istride];
122
               tmp26 = imag_input[imag_istride];
123
               tmp27 = K866025403 * (tmp25 + tmp26);
124
               tmp43 = tmp25 - tmp26;
125
          }
126
          tmp37 = K866025403 * (tmp5 - tmp6);
127
          tmp61 = tmp39 - tmp38;
128
          tmp62 = tmp44 - tmp43;
129
          tmp45 = (K500000000 * tmp43) + tmp44;
130
          tmp40 = (K500000000 * tmp38) + tmp39;
131
          tmp19 = tmp4 - (K500000000 * tmp7);
132
          tmp23 = tmp19 - tmp22;
133
          tmp31 = tmp19 + tmp22;
134
          tmp42 = K866025403 * (tmp10 - tmp11);
135
          tmp24 = tmp9 - (K500000000 * tmp12);
136
          tmp28 = tmp24 - tmp27;
137
          tmp32 = tmp24 + tmp27;
138
          tmp8 = tmp4 + tmp7;
139
          tmp13 = tmp9 + tmp12;
140
          tmp14 = tmp8 + tmp13;
141
     }
142
     output[0] = tmp3 + (K2_000000000 * tmp14);
143
     {
144
          fftw_real tmp63;
145
          fftw_real tmp65;
146
          fftw_real tmp60;
147
          fftw_real tmp64;
148
          fftw_real tmp58;
149
          fftw_real tmp59;
150
          ASSERT_ALIGNED_DOUBLE();
151
          tmp63 = (K1_175570504 * tmp61) - (K1_902113032 * tmp62);
152
          tmp65 = (K1_902113032 * tmp61) + (K1_175570504 * tmp62);
153
          tmp58 = tmp3 - (K500000000 * tmp14);
154
          tmp59 = K1_118033988 * (tmp8 - tmp13);
155
          tmp60 = tmp58 - tmp59;
156
          tmp64 = tmp59 + tmp58;
157
          output[12 * ostride] = tmp60 - tmp63;
158
          output[3 * ostride] = tmp60 + tmp63;
159
          output[6 * ostride] = tmp64 - tmp65;
160
          output[9 * ostride] = tmp64 + tmp65;
161
     }
162
     {
163
          fftw_real tmp51;
164
          fftw_real tmp29;
165
          fftw_real tmp50;
166
          fftw_real tmp55;
167
          fftw_real tmp57;
168
          fftw_real tmp53;
169
          fftw_real tmp54;
170
          fftw_real tmp56;
171
          fftw_real tmp52;
172
          ASSERT_ALIGNED_DOUBLE();
173
          tmp51 = K1_118033988 * (tmp23 - tmp28);
174
          tmp29 = tmp23 + tmp28;
175
          tmp50 = tmp18 - (K500000000 * tmp29);
176
          tmp53 = tmp40 - tmp37;
177
          tmp54 = tmp45 - tmp42;
178
          tmp55 = (K1_175570504 * tmp53) - (K1_902113032 * tmp54);
179
          tmp57 = (K1_902113032 * tmp53) + (K1_175570504 * tmp54);
180
          output[5 * ostride] = tmp18 + (K2_000000000 * tmp29);
181
          tmp56 = tmp51 + tmp50;
182
          output[11 * ostride] = tmp56 - tmp57;
183
          output[14 * ostride] = tmp56 + tmp57;
184
          tmp52 = tmp50 - tmp51;
185
          output[2 * ostride] = tmp52 - tmp55;
186
          output[8 * ostride] = tmp52 + tmp55;
187
     }
188
     {
189
          fftw_real tmp35;
190
          fftw_real tmp33;
191
          fftw_real tmp34;
192
          fftw_real tmp47;
193
          fftw_real tmp49;
194
          fftw_real tmp41;
195
          fftw_real tmp46;
196
          fftw_real tmp48;
197
          fftw_real tmp36;
198
          ASSERT_ALIGNED_DOUBLE();
199
          tmp35 = K1_118033988 * (tmp31 - tmp32);
200
          tmp33 = tmp31 + tmp32;
201
          tmp34 = tmp30 - (K500000000 * tmp33);
202
          tmp41 = tmp37 + tmp40;
203
          tmp46 = tmp42 + tmp45;
204
          tmp47 = (K1_175570504 * tmp41) - (K1_902113032 * tmp46);
205
          tmp49 = (K1_902113032 * tmp41) + (K1_175570504 * tmp46);
206
          output[10 * ostride] = tmp30 + (K2_000000000 * tmp33);
207
          tmp48 = tmp35 + tmp34;
208
          output[ostride] = tmp48 - tmp49;
209
          output[4 * ostride] = tmp48 + tmp49;
210
          tmp36 = tmp34 - tmp35;
211
          output[7 * ostride] = tmp36 - tmp47;
212
          output[13 * ostride] = tmp36 + tmp47;
213
     }
214
}
215
 
216
fftw_codelet_desc fftw_hc2real_15_desc =
217
{
218
     "fftw_hc2real_15",
219
     (void (*)()) fftw_hc2real_15,
220
     15,
221
     FFTW_BACKWARD,
222
     FFTW_HC2REAL,
223
     345,
224
     0,
225
     (const int *) 0,
226
};