Subversion Repositories shark

Rev

Details | 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:39 EDT 1999 */
22
 
23
#include <ports/fftw-int.h>
24
#include <ports/fftw.h>
25
 
26
/* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 15 */
27
 
28
/*
29
 * This function contains 64 FP additions, 25 FP multiplications,
30
 * (or, 50 additions, 11 multiplications, 14 fused multiply/add),
31
 * 40 stack variables, and 30 memory accesses
32
 */
33
static const fftw_real K509036960 = FFTW_KONST(+0.509036960455127183450980863393907648510733164);
34
static const fftw_real K823639103 = FFTW_KONST(+0.823639103546331925877420039278190003029660514);
35
static const fftw_real K250000000 = FFTW_KONST(+0.250000000000000000000000000000000000000000000);
36
static const fftw_real K559016994 = FFTW_KONST(+0.559016994374947424102293417182819058860154590);
37
static const fftw_real K587785252 = FFTW_KONST(+0.587785252292473129168705954639072768597652438);
38
static const fftw_real K951056516 = FFTW_KONST(+0.951056516295153572116439333379382143405698634);
39
static const fftw_real K484122918 = FFTW_KONST(+0.484122918275927110647408174972799951354115213);
40
static const fftw_real K216506350 = FFTW_KONST(+0.216506350946109661690930792688234045867850657);
41
static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627);
42
static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000);
43
 
44
/*
45
 * Generator Id's :
46
 * $Id: frc_15.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
47
 * $Id: frc_15.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
48
 * $Id: frc_15.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
49
 */
50
 
51
void fftw_real2hc_15(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride)
52
{
53
     fftw_real tmp3;
54
     fftw_real tmp53;
55
     fftw_real tmp47;
56
     fftw_real tmp39;
57
     fftw_real tmp40;
58
     fftw_real tmp10;
59
     fftw_real tmp17;
60
     fftw_real tmp18;
61
     fftw_real tmp57;
62
     fftw_real tmp58;
63
     fftw_real tmp59;
64
     fftw_real tmp31;
65
     fftw_real tmp34;
66
     fftw_real tmp43;
67
     fftw_real tmp54;
68
     fftw_real tmp55;
69
     fftw_real tmp56;
70
     fftw_real tmp24;
71
     fftw_real tmp27;
72
     fftw_real tmp42;
73
     ASSERT_ALIGNED_DOUBLE();
74
     {
75
          fftw_real tmp45;
76
          fftw_real tmp1;
77
          fftw_real tmp2;
78
          fftw_real tmp46;
79
          ASSERT_ALIGNED_DOUBLE();
80
          tmp45 = input[0];
81
          tmp1 = input[10 * istride];
82
          tmp2 = input[5 * istride];
83
          tmp46 = tmp2 + tmp1;
84
          tmp3 = tmp1 - tmp2;
85
          tmp53 = tmp45 + tmp46;
86
          tmp47 = tmp45 - (K500000000 * tmp46);
87
     }
88
     {
89
          fftw_real tmp22;
90
          fftw_real tmp29;
91
          fftw_real tmp32;
92
          fftw_real tmp6;
93
          fftw_real tmp23;
94
          fftw_real tmp25;
95
          fftw_real tmp16;
96
          fftw_real tmp33;
97
          fftw_real tmp9;
98
          fftw_real tmp26;
99
          fftw_real tmp13;
100
          fftw_real tmp30;
101
          ASSERT_ALIGNED_DOUBLE();
102
          {
103
               fftw_real tmp4;
104
               fftw_real tmp5;
105
               fftw_real tmp14;
106
               fftw_real tmp15;
107
               ASSERT_ALIGNED_DOUBLE();
108
               tmp22 = input[3 * istride];
109
               tmp29 = input[6 * istride];
110
               tmp32 = input[9 * istride];
111
               tmp4 = input[13 * istride];
112
               tmp5 = input[8 * istride];
113
               tmp6 = tmp4 - tmp5;
114
               tmp23 = tmp5 + tmp4;
115
               tmp25 = input[12 * istride];
116
               tmp14 = input[4 * istride];
117
               tmp15 = input[14 * istride];
118
               tmp16 = tmp14 - tmp15;
119
               tmp33 = tmp15 + tmp14;
120
               {
121
                    fftw_real tmp7;
122
                    fftw_real tmp8;
123
                    fftw_real tmp11;
124
                    fftw_real tmp12;
125
                    ASSERT_ALIGNED_DOUBLE();
126
                    tmp7 = input[7 * istride];
127
                    tmp8 = input[2 * istride];
128
                    tmp9 = tmp7 - tmp8;
129
                    tmp26 = tmp8 + tmp7;
130
                    tmp11 = input[istride];
131
                    tmp12 = input[11 * istride];
132
                    tmp13 = tmp11 - tmp12;
133
                    tmp30 = tmp12 + tmp11;
134
               }
135
          }
136
          tmp39 = tmp6 - tmp9;
137
          tmp40 = tmp13 - tmp16;
138
          tmp10 = tmp6 + tmp9;
139
          tmp17 = tmp13 + tmp16;
140
          tmp18 = tmp10 + tmp17;
141
          tmp57 = tmp29 + tmp30;
142
          tmp58 = tmp32 + tmp33;
143
          tmp59 = tmp57 + tmp58;
144
          tmp31 = tmp29 - (K500000000 * tmp30);
145
          tmp34 = tmp32 - (K500000000 * tmp33);
146
          tmp43 = tmp31 + tmp34;
147
          tmp54 = tmp22 + tmp23;
148
          tmp55 = tmp25 + tmp26;
149
          tmp56 = tmp54 + tmp55;
150
          tmp24 = tmp22 - (K500000000 * tmp23);
151
          tmp27 = tmp25 - (K500000000 * tmp26);
152
          tmp42 = tmp24 + tmp27;
153
     }
154
     imag_output[5 * imag_ostride] = -(K866025403 * (tmp3 + tmp18));
155
     {
156
          fftw_real tmp21;
157
          fftw_real tmp37;
158
          fftw_real tmp36;
159
          fftw_real tmp38;
160
          ASSERT_ALIGNED_DOUBLE();
161
          {
162
               fftw_real tmp19;
163
               fftw_real tmp20;
164
               fftw_real tmp28;
165
               fftw_real tmp35;
166
               ASSERT_ALIGNED_DOUBLE();
167
               tmp19 = (K866025403 * tmp3) - (K216506350 * tmp18);
168
               tmp20 = K484122918 * (tmp10 - tmp17);
169
               tmp21 = tmp19 + tmp20;
170
               tmp37 = tmp20 - tmp19;
171
               tmp28 = tmp24 - tmp27;
172
               tmp35 = tmp31 - tmp34;
173
               tmp36 = (K951056516 * tmp28) + (K587785252 * tmp35);
174
               tmp38 = (K951056516 * tmp35) - (K587785252 * tmp28);
175
          }
176
          imag_output[imag_ostride] = tmp21 - tmp36;
177
          imag_output[4 * imag_ostride] = tmp21 + tmp36;
178
          imag_output[2 * imag_ostride] = tmp37 + tmp38;
179
          imag_output[7 * imag_ostride] = tmp38 - tmp37;
180
     }
181
     {
182
          fftw_real tmp63;
183
          fftw_real tmp64;
184
          fftw_real tmp62;
185
          fftw_real tmp60;
186
          fftw_real tmp61;
187
          ASSERT_ALIGNED_DOUBLE();
188
          tmp63 = tmp54 - tmp55;
189
          tmp64 = tmp57 - tmp58;
190
          imag_output[3 * imag_ostride] = (K587785252 * tmp63) - (K951056516 * tmp64);
191
          imag_output[6 * imag_ostride] = -((K951056516 * tmp63) + (K587785252 * tmp64));
192
          tmp62 = K559016994 * (tmp56 - tmp59);
193
          tmp60 = tmp56 + tmp59;
194
          tmp61 = tmp53 - (K250000000 * tmp60);
195
          real_output[3 * real_ostride] = tmp61 - tmp62;
196
          real_output[6 * real_ostride] = tmp62 + tmp61;
197
          real_output[0] = tmp53 + tmp60;
198
          {
199
               fftw_real tmp41;
200
               fftw_real tmp52;
201
               fftw_real tmp44;
202
               fftw_real tmp48;
203
               fftw_real tmp49;
204
               fftw_real tmp51;
205
               fftw_real tmp50;
206
               ASSERT_ALIGNED_DOUBLE();
207
               tmp41 = (K823639103 * tmp39) + (K509036960 * tmp40);
208
               tmp52 = (K509036960 * tmp39) - (K823639103 * tmp40);
209
               tmp44 = K559016994 * (tmp42 - tmp43);
210
               tmp48 = tmp42 + tmp43;
211
               tmp49 = tmp47 - (K250000000 * tmp48);
212
               real_output[5 * real_ostride] = tmp47 + tmp48;
213
               tmp51 = tmp49 - tmp44;
214
               real_output[2 * real_ostride] = tmp51 - tmp52;
215
               real_output[7 * real_ostride] = tmp52 + tmp51;
216
               tmp50 = tmp44 + tmp49;
217
               real_output[real_ostride] = tmp41 + tmp50;
218
               real_output[4 * real_ostride] = tmp50 - tmp41;
219
          }
220
     }
221
}
222
 
223
fftw_codelet_desc fftw_real2hc_15_desc =
224
{
225
     "fftw_real2hc_15",
226
     (void (*)()) fftw_real2hc_15,
227
     15,
228
     FFTW_FORWARD,
229
     FFTW_REAL2HC,
230
     332,
231
     0,
232
     (const int *) 0,
233
};