Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | 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 8 */
27
 
28
/*
29
 * This function contains 52 FP additions, 4 FP multiplications,
30
 * (or, 52 additions, 4 multiplications, 0 fused multiply/add),
31
 * 26 stack variables, and 32 memory accesses
32
 */
33
static const fftw_real K707106781 = FFTW_KONST(+0.707106781186547524400844362104849039284835938);
34
 
35
/*
36
 * Generator Id's :
107 pj 37
 * $Id: fn_8.c,v 1.2 2003-03-24 11:14:51 pj Exp $
38
 * $Id: fn_8.c,v 1.2 2003-03-24 11:14:51 pj Exp $
39
 * $Id: fn_8.c,v 1.2 2003-03-24 11:14:51 pj Exp $
2 pj 40
 */
41
 
42
void fftw_no_twiddle_8(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
43
{
44
     fftw_real tmp3;
45
     fftw_real tmp23;
46
     fftw_real tmp18;
47
     fftw_real tmp38;
48
     fftw_real tmp6;
49
     fftw_real tmp37;
50
     fftw_real tmp21;
51
     fftw_real tmp24;
52
     fftw_real tmp13;
53
     fftw_real tmp49;
54
     fftw_real tmp35;
55
     fftw_real tmp43;
56
     fftw_real tmp10;
57
     fftw_real tmp48;
58
     fftw_real tmp30;
59
     fftw_real tmp42;
60
     ASSERT_ALIGNED_DOUBLE();
61
     {
62
          fftw_real tmp1;
63
          fftw_real tmp2;
64
          fftw_real tmp19;
65
          fftw_real tmp20;
66
          ASSERT_ALIGNED_DOUBLE();
67
          tmp1 = c_re(input[0]);
68
          tmp2 = c_re(input[4 * istride]);
69
          tmp3 = tmp1 + tmp2;
70
          tmp23 = tmp1 - tmp2;
71
          {
72
               fftw_real tmp16;
73
               fftw_real tmp17;
74
               fftw_real tmp4;
75
               fftw_real tmp5;
76
               ASSERT_ALIGNED_DOUBLE();
77
               tmp16 = c_im(input[0]);
78
               tmp17 = c_im(input[4 * istride]);
79
               tmp18 = tmp16 + tmp17;
80
               tmp38 = tmp16 - tmp17;
81
               tmp4 = c_re(input[2 * istride]);
82
               tmp5 = c_re(input[6 * istride]);
83
               tmp6 = tmp4 + tmp5;
84
               tmp37 = tmp4 - tmp5;
85
          }
86
          tmp19 = c_im(input[2 * istride]);
87
          tmp20 = c_im(input[6 * istride]);
88
          tmp21 = tmp19 + tmp20;
89
          tmp24 = tmp19 - tmp20;
90
          {
91
               fftw_real tmp11;
92
               fftw_real tmp12;
93
               fftw_real tmp31;
94
               fftw_real tmp32;
95
               fftw_real tmp33;
96
               fftw_real tmp34;
97
               ASSERT_ALIGNED_DOUBLE();
98
               tmp11 = c_re(input[7 * istride]);
99
               tmp12 = c_re(input[3 * istride]);
100
               tmp31 = tmp11 - tmp12;
101
               tmp32 = c_im(input[7 * istride]);
102
               tmp33 = c_im(input[3 * istride]);
103
               tmp34 = tmp32 - tmp33;
104
               tmp13 = tmp11 + tmp12;
105
               tmp49 = tmp32 + tmp33;
106
               tmp35 = tmp31 - tmp34;
107
               tmp43 = tmp31 + tmp34;
108
          }
109
          {
110
               fftw_real tmp8;
111
               fftw_real tmp9;
112
               fftw_real tmp26;
113
               fftw_real tmp27;
114
               fftw_real tmp28;
115
               fftw_real tmp29;
116
               ASSERT_ALIGNED_DOUBLE();
117
               tmp8 = c_re(input[istride]);
118
               tmp9 = c_re(input[5 * istride]);
119
               tmp26 = tmp8 - tmp9;
120
               tmp27 = c_im(input[istride]);
121
               tmp28 = c_im(input[5 * istride]);
122
               tmp29 = tmp27 - tmp28;
123
               tmp10 = tmp8 + tmp9;
124
               tmp48 = tmp27 + tmp28;
125
               tmp30 = tmp26 + tmp29;
126
               tmp42 = tmp29 - tmp26;
127
          }
128
     }
129
     {
130
          fftw_real tmp7;
131
          fftw_real tmp14;
132
          fftw_real tmp15;
133
          fftw_real tmp22;
134
          ASSERT_ALIGNED_DOUBLE();
135
          tmp7 = tmp3 + tmp6;
136
          tmp14 = tmp10 + tmp13;
137
          c_re(output[4 * ostride]) = tmp7 - tmp14;
138
          c_re(output[0]) = tmp7 + tmp14;
139
          tmp15 = tmp13 - tmp10;
140
          tmp22 = tmp18 - tmp21;
141
          c_im(output[2 * ostride]) = tmp15 + tmp22;
142
          c_im(output[6 * ostride]) = tmp22 - tmp15;
143
     }
144
     {
145
          fftw_real tmp51;
146
          fftw_real tmp52;
147
          fftw_real tmp47;
148
          fftw_real tmp50;
149
          ASSERT_ALIGNED_DOUBLE();
150
          tmp51 = tmp18 + tmp21;
151
          tmp52 = tmp48 + tmp49;
152
          c_im(output[4 * ostride]) = tmp51 - tmp52;
153
          c_im(output[0]) = tmp51 + tmp52;
154
          tmp47 = tmp3 - tmp6;
155
          tmp50 = tmp48 - tmp49;
156
          c_re(output[6 * ostride]) = tmp47 - tmp50;
157
          c_re(output[2 * ostride]) = tmp47 + tmp50;
158
     }
159
     {
160
          fftw_real tmp25;
161
          fftw_real tmp36;
162
          fftw_real tmp39;
163
          fftw_real tmp40;
164
          ASSERT_ALIGNED_DOUBLE();
165
          tmp25 = tmp23 + tmp24;
166
          tmp36 = K707106781 * (tmp30 + tmp35);
167
          c_re(output[5 * ostride]) = tmp25 - tmp36;
168
          c_re(output[ostride]) = tmp25 + tmp36;
169
          tmp39 = tmp37 + tmp38;
170
          tmp40 = K707106781 * (tmp35 - tmp30);
171
          c_im(output[7 * ostride]) = tmp39 - tmp40;
172
          c_im(output[3 * ostride]) = tmp39 + tmp40;
173
     }
174
     {
175
          fftw_real tmp45;
176
          fftw_real tmp46;
177
          fftw_real tmp41;
178
          fftw_real tmp44;
179
          ASSERT_ALIGNED_DOUBLE();
180
          tmp45 = tmp38 - tmp37;
181
          tmp46 = K707106781 * (tmp42 + tmp43);
182
          c_im(output[5 * ostride]) = tmp45 - tmp46;
183
          c_im(output[ostride]) = tmp45 + tmp46;
184
          tmp41 = tmp23 - tmp24;
185
          tmp44 = K707106781 * (tmp42 - tmp43);
186
          c_re(output[7 * ostride]) = tmp41 - tmp44;
187
          c_re(output[3 * ostride]) = tmp41 + tmp44;
188
     }
189
}
190
 
191
fftw_codelet_desc fftw_no_twiddle_8_desc =
192
{
193
     "fftw_no_twiddle_8",
194
     (void (*)()) fftw_no_twiddle_8,
195
     8,
196
     FFTW_FORWARD,
197
     FFTW_NOTW,
198
     177,
199
     0,
200
     (const int *) 0,
201
};