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:54:27 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 -notwiddle 10 */
27
 
28
/*
29
 * This function contains 84 FP additions, 24 FP multiplications,
30
 * (or, 72 additions, 12 multiplications, 12 fused multiply/add),
31
 * 36 stack variables, and 40 memory accesses
32
 */
33
static const fftw_real K250000000 = FFTW_KONST(+0.250000000000000000000000000000000000000000000);
34
static const fftw_real K559016994 = FFTW_KONST(+0.559016994374947424102293417182819058860154590);
35
static const fftw_real K587785252 = FFTW_KONST(+0.587785252292473129168705954639072768597652438);
36
static const fftw_real K951056516 = FFTW_KONST(+0.951056516295153572116439333379382143405698634);
37
 
38
/*
39
 * Generator Id's :
107 pj 40
 * $Id: fn_10.c,v 1.2 2003-03-24 11:14:50 pj Exp $
41
 * $Id: fn_10.c,v 1.2 2003-03-24 11:14:50 pj Exp $
42
 * $Id: fn_10.c,v 1.2 2003-03-24 11:14:50 pj Exp $
2 pj 43
 */
44
 
45
void fftw_no_twiddle_10(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
46
{
47
     fftw_real tmp3;
48
     fftw_real tmp19;
49
     fftw_real tmp52;
50
     fftw_real tmp76;
51
     fftw_real tmp56;
52
     fftw_real tmp57;
53
     fftw_real tmp10;
54
     fftw_real tmp17;
55
     fftw_real tmp18;
56
     fftw_real tmp74;
57
     fftw_real tmp73;
58
     fftw_real tmp22;
59
     fftw_real tmp25;
60
     fftw_real tmp26;
61
     fftw_real tmp36;
62
     fftw_real tmp43;
63
     fftw_real tmp47;
64
     fftw_real tmp48;
65
     fftw_real tmp53;
66
     fftw_real tmp66;
67
     fftw_real tmp69;
68
     fftw_real tmp77;
69
     fftw_real tmp78;
70
     fftw_real tmp79;
71
     ASSERT_ALIGNED_DOUBLE();
72
     {
73
          fftw_real tmp1;
74
          fftw_real tmp2;
75
          fftw_real tmp50;
76
          fftw_real tmp51;
77
          ASSERT_ALIGNED_DOUBLE();
78
          tmp1 = c_re(input[0]);
79
          tmp2 = c_re(input[5 * istride]);
80
          tmp3 = tmp1 - tmp2;
81
          tmp19 = tmp1 + tmp2;
82
          tmp50 = c_im(input[0]);
83
          tmp51 = c_im(input[5 * istride]);
84
          tmp52 = tmp50 - tmp51;
85
          tmp76 = tmp50 + tmp51;
86
     }
87
     {
88
          fftw_real tmp6;
89
          fftw_real tmp20;
90
          fftw_real tmp16;
91
          fftw_real tmp24;
92
          fftw_real tmp9;
93
          fftw_real tmp21;
94
          fftw_real tmp13;
95
          fftw_real tmp23;
96
          ASSERT_ALIGNED_DOUBLE();
97
          {
98
               fftw_real tmp4;
99
               fftw_real tmp5;
100
               fftw_real tmp14;
101
               fftw_real tmp15;
102
               ASSERT_ALIGNED_DOUBLE();
103
               tmp4 = c_re(input[2 * istride]);
104
               tmp5 = c_re(input[7 * istride]);
105
               tmp6 = tmp4 - tmp5;
106
               tmp20 = tmp4 + tmp5;
107
               tmp14 = c_re(input[6 * istride]);
108
               tmp15 = c_re(input[istride]);
109
               tmp16 = tmp14 - tmp15;
110
               tmp24 = tmp14 + tmp15;
111
          }
112
          {
113
               fftw_real tmp7;
114
               fftw_real tmp8;
115
               fftw_real tmp11;
116
               fftw_real tmp12;
117
               ASSERT_ALIGNED_DOUBLE();
118
               tmp7 = c_re(input[8 * istride]);
119
               tmp8 = c_re(input[3 * istride]);
120
               tmp9 = tmp7 - tmp8;
121
               tmp21 = tmp7 + tmp8;
122
               tmp11 = c_re(input[4 * istride]);
123
               tmp12 = c_re(input[9 * istride]);
124
               tmp13 = tmp11 - tmp12;
125
               tmp23 = tmp11 + tmp12;
126
          }
127
          tmp56 = tmp6 - tmp9;
128
          tmp57 = tmp13 - tmp16;
129
          tmp10 = tmp6 + tmp9;
130
          tmp17 = tmp13 + tmp16;
131
          tmp18 = tmp10 + tmp17;
132
          tmp74 = tmp20 - tmp21;
133
          tmp73 = tmp23 - tmp24;
134
          tmp22 = tmp20 + tmp21;
135
          tmp25 = tmp23 + tmp24;
136
          tmp26 = tmp22 + tmp25;
137
     }
138
     {
139
          fftw_real tmp32;
140
          fftw_real tmp67;
141
          fftw_real tmp42;
142
          fftw_real tmp65;
143
          fftw_real tmp35;
144
          fftw_real tmp68;
145
          fftw_real tmp39;
146
          fftw_real tmp64;
147
          ASSERT_ALIGNED_DOUBLE();
148
          {
149
               fftw_real tmp30;
150
               fftw_real tmp31;
151
               fftw_real tmp40;
152
               fftw_real tmp41;
153
               ASSERT_ALIGNED_DOUBLE();
154
               tmp30 = c_im(input[2 * istride]);
155
               tmp31 = c_im(input[7 * istride]);
156
               tmp32 = tmp30 - tmp31;
157
               tmp67 = tmp30 + tmp31;
158
               tmp40 = c_im(input[6 * istride]);
159
               tmp41 = c_im(input[istride]);
160
               tmp42 = tmp40 - tmp41;
161
               tmp65 = tmp40 + tmp41;
162
          }
163
          {
164
               fftw_real tmp33;
165
               fftw_real tmp34;
166
               fftw_real tmp37;
167
               fftw_real tmp38;
168
               ASSERT_ALIGNED_DOUBLE();
169
               tmp33 = c_im(input[8 * istride]);
170
               tmp34 = c_im(input[3 * istride]);
171
               tmp35 = tmp33 - tmp34;
172
               tmp68 = tmp33 + tmp34;
173
               tmp37 = c_im(input[4 * istride]);
174
               tmp38 = c_im(input[9 * istride]);
175
               tmp39 = tmp37 - tmp38;
176
               tmp64 = tmp37 + tmp38;
177
          }
178
          tmp36 = tmp32 - tmp35;
179
          tmp43 = tmp39 - tmp42;
180
          tmp47 = tmp32 + tmp35;
181
          tmp48 = tmp39 + tmp42;
182
          tmp53 = tmp47 + tmp48;
183
          tmp66 = tmp64 - tmp65;
184
          tmp69 = tmp67 - tmp68;
185
          tmp77 = tmp67 + tmp68;
186
          tmp78 = tmp64 + tmp65;
187
          tmp79 = tmp77 + tmp78;
188
     }
189
     c_re(output[5 * ostride]) = tmp3 + tmp18;
190
     {
191
          fftw_real tmp44;
192
          fftw_real tmp46;
193
          fftw_real tmp29;
194
          fftw_real tmp45;
195
          fftw_real tmp27;
196
          fftw_real tmp28;
197
          ASSERT_ALIGNED_DOUBLE();
198
          tmp44 = (K951056516 * tmp36) + (K587785252 * tmp43);
199
          tmp46 = (K951056516 * tmp43) - (K587785252 * tmp36);
200
          tmp27 = K559016994 * (tmp10 - tmp17);
201
          tmp28 = tmp3 - (K250000000 * tmp18);
202
          tmp29 = tmp27 + tmp28;
203
          tmp45 = tmp28 - tmp27;
204
          c_re(output[9 * ostride]) = tmp29 - tmp44;
205
          c_re(output[ostride]) = tmp29 + tmp44;
206
          c_re(output[7 * ostride]) = tmp45 - tmp46;
207
          c_re(output[3 * ostride]) = tmp45 + tmp46;
208
     }
209
     c_re(output[0]) = tmp19 + tmp26;
210
     {
211
          fftw_real tmp70;
212
          fftw_real tmp72;
213
          fftw_real tmp63;
214
          fftw_real tmp71;
215
          fftw_real tmp61;
216
          fftw_real tmp62;
217
          ASSERT_ALIGNED_DOUBLE();
218
          tmp70 = (K951056516 * tmp66) - (K587785252 * tmp69);
219
          tmp72 = (K951056516 * tmp69) + (K587785252 * tmp66);
220
          tmp61 = tmp19 - (K250000000 * tmp26);
221
          tmp62 = K559016994 * (tmp22 - tmp25);
222
          tmp63 = tmp61 - tmp62;
223
          tmp71 = tmp62 + tmp61;
224
          c_re(output[2 * ostride]) = tmp63 - tmp70;
225
          c_re(output[8 * ostride]) = tmp63 + tmp70;
226
          c_re(output[4 * ostride]) = tmp71 - tmp72;
227
          c_re(output[6 * ostride]) = tmp71 + tmp72;
228
     }
229
     c_im(output[5 * ostride]) = tmp52 + tmp53;
230
     {
231
          fftw_real tmp58;
232
          fftw_real tmp60;
233
          fftw_real tmp55;
234
          fftw_real tmp59;
235
          fftw_real tmp49;
236
          fftw_real tmp54;
237
          ASSERT_ALIGNED_DOUBLE();
238
          tmp58 = (K951056516 * tmp56) + (K587785252 * tmp57);
239
          tmp60 = (K951056516 * tmp57) - (K587785252 * tmp56);
240
          tmp49 = K559016994 * (tmp47 - tmp48);
241
          tmp54 = tmp52 - (K250000000 * tmp53);
242
          tmp55 = tmp49 + tmp54;
243
          tmp59 = tmp54 - tmp49;
244
          c_im(output[ostride]) = tmp55 - tmp58;
245
          c_im(output[9 * ostride]) = tmp58 + tmp55;
246
          c_im(output[3 * ostride]) = tmp59 - tmp60;
247
          c_im(output[7 * ostride]) = tmp60 + tmp59;
248
     }
249
     c_im(output[0]) = tmp76 + tmp79;
250
     {
251
          fftw_real tmp75;
252
          fftw_real tmp83;
253
          fftw_real tmp82;
254
          fftw_real tmp84;
255
          fftw_real tmp80;
256
          fftw_real tmp81;
257
          ASSERT_ALIGNED_DOUBLE();
258
          tmp75 = (K951056516 * tmp73) - (K587785252 * tmp74);
259
          tmp83 = (K951056516 * tmp74) + (K587785252 * tmp73);
260
          tmp80 = tmp76 - (K250000000 * tmp79);
261
          tmp81 = K559016994 * (tmp77 - tmp78);
262
          tmp82 = tmp80 - tmp81;
263
          tmp84 = tmp81 + tmp80;
264
          c_im(output[2 * ostride]) = tmp75 + tmp82;
265
          c_im(output[8 * ostride]) = tmp82 - tmp75;
266
          c_im(output[4 * ostride]) = tmp83 + tmp84;
267
          c_im(output[6 * ostride]) = tmp84 - tmp83;
268
     }
269
}
270
 
271
fftw_codelet_desc fftw_no_twiddle_10_desc =
272
{
273
     "fftw_no_twiddle_10",
274
     (void (*)()) fftw_no_twiddle_10,
275
     10,
276
     FFTW_FORWARD,
277
     FFTW_NOTW,
278
     221,
279
     0,
280
     (const int *) 0,
281
};