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