Bsoft  1.9
Bernard's software package
fn_8.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-1999, 2003 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 Mon Mar 24 02:05:37 EST 2003 */
22 
23 #include "fftw-int.h"
24 #include "fftw.h"
25 
26 /* Generated by: /homee/stevenj/cvs/fftw/gensrc/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 =
34 FFTW_KONST(+0.707106781186547524400844362104849039284835938);
35 
36 /*
37  * Generator Id's :
38  * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
39  * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
40  * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
41  */
42 
43 void fftw_no_twiddle_8(const fftw_complex *input, fftw_complex *output,
44  int istride, int ostride)
45 {
46  fftw_real tmp3;
47  fftw_real tmp23;
48  fftw_real tmp18;
49  fftw_real tmp38;
50  fftw_real tmp6;
51  fftw_real tmp37;
52  fftw_real tmp21;
53  fftw_real tmp24;
54  fftw_real tmp13;
55  fftw_real tmp49;
56  fftw_real tmp35;
57  fftw_real tmp43;
58  fftw_real tmp10;
59  fftw_real tmp48;
60  fftw_real tmp30;
61  fftw_real tmp42;
63  {
64  fftw_real tmp1;
65  fftw_real tmp2;
66  fftw_real tmp19;
67  fftw_real tmp20;
69  tmp1 = c_re(input[0]);
70  tmp2 = c_re(input[4 * istride]);
71  tmp3 = tmp1 + tmp2;
72  tmp23 = tmp1 - tmp2;
73  {
74  fftw_real tmp16;
75  fftw_real tmp17;
76  fftw_real tmp4;
77  fftw_real tmp5;
79  tmp16 = c_im(input[0]);
80  tmp17 = c_im(input[4 * istride]);
81  tmp18 = tmp16 + tmp17;
82  tmp38 = tmp16 - tmp17;
83  tmp4 = c_re(input[2 * istride]);
84  tmp5 = c_re(input[6 * istride]);
85  tmp6 = tmp4 + tmp5;
86  tmp37 = tmp4 - tmp5;
87  }
88  tmp19 = c_im(input[2 * istride]);
89  tmp20 = c_im(input[6 * istride]);
90  tmp21 = tmp19 + tmp20;
91  tmp24 = tmp19 - tmp20;
92  {
93  fftw_real tmp11;
94  fftw_real tmp12;
95  fftw_real tmp31;
96  fftw_real tmp32;
97  fftw_real tmp33;
98  fftw_real tmp34;
100  tmp11 = c_re(input[7 * istride]);
101  tmp12 = c_re(input[3 * istride]);
102  tmp31 = tmp11 - tmp12;
103  tmp32 = c_im(input[7 * istride]);
104  tmp33 = c_im(input[3 * istride]);
105  tmp34 = tmp32 - tmp33;
106  tmp13 = tmp11 + tmp12;
107  tmp49 = tmp32 + tmp33;
108  tmp35 = tmp31 - tmp34;
109  tmp43 = tmp31 + tmp34;
110  }
111  {
112  fftw_real tmp8;
113  fftw_real tmp9;
114  fftw_real tmp26;
115  fftw_real tmp27;
116  fftw_real tmp28;
117  fftw_real tmp29;
119  tmp8 = c_re(input[istride]);
120  tmp9 = c_re(input[5 * istride]);
121  tmp26 = tmp8 - tmp9;
122  tmp27 = c_im(input[istride]);
123  tmp28 = c_im(input[5 * istride]);
124  tmp29 = tmp27 - tmp28;
125  tmp10 = tmp8 + tmp9;
126  tmp48 = tmp27 + tmp28;
127  tmp30 = tmp26 + tmp29;
128  tmp42 = tmp29 - tmp26;
129  }
130  }
131  {
132  fftw_real tmp7;
133  fftw_real tmp14;
134  fftw_real tmp15;
135  fftw_real tmp22;
137  tmp7 = tmp3 + tmp6;
138  tmp14 = tmp10 + tmp13;
139  c_re(output[4 * ostride]) = tmp7 - tmp14;
140  c_re(output[0]) = tmp7 + tmp14;
141  tmp15 = tmp13 - tmp10;
142  tmp22 = tmp18 - tmp21;
143  c_im(output[2 * ostride]) = tmp15 + tmp22;
144  c_im(output[6 * ostride]) = tmp22 - tmp15;
145  }
146  {
147  fftw_real tmp51;
148  fftw_real tmp52;
149  fftw_real tmp47;
150  fftw_real tmp50;
152  tmp51 = tmp18 + tmp21;
153  tmp52 = tmp48 + tmp49;
154  c_im(output[4 * ostride]) = tmp51 - tmp52;
155  c_im(output[0]) = tmp51 + tmp52;
156  tmp47 = tmp3 - tmp6;
157  tmp50 = tmp48 - tmp49;
158  c_re(output[6 * ostride]) = tmp47 - tmp50;
159  c_re(output[2 * ostride]) = tmp47 + tmp50;
160  }
161  {
162  fftw_real tmp25;
163  fftw_real tmp36;
164  fftw_real tmp39;
165  fftw_real tmp40;
167  tmp25 = tmp23 + tmp24;
168  tmp36 = K707106781 * (tmp30 + tmp35);
169  c_re(output[5 * ostride]) = tmp25 - tmp36;
170  c_re(output[ostride]) = tmp25 + tmp36;
171  tmp39 = tmp37 + tmp38;
172  tmp40 = K707106781 * (tmp35 - tmp30);
173  c_im(output[7 * ostride]) = tmp39 - tmp40;
174  c_im(output[3 * ostride]) = tmp39 + tmp40;
175  }
176  {
177  fftw_real tmp45;
178  fftw_real tmp46;
179  fftw_real tmp41;
180  fftw_real tmp44;
182  tmp45 = tmp38 - tmp37;
183  tmp46 = K707106781 * (tmp42 + tmp43);
184  c_im(output[5 * ostride]) = tmp45 - tmp46;
185  c_im(output[ostride]) = tmp45 + tmp46;
186  tmp41 = tmp23 - tmp24;
187  tmp44 = K707106781 * (tmp42 - tmp43);
188  c_re(output[7 * ostride]) = tmp41 - tmp44;
189  c_re(output[3 * ostride]) = tmp41 + tmp44;
190  }
191 }
192 
194  "fftw_no_twiddle_8",
195  (void (*)()) fftw_no_twiddle_8,
196  8,
197  FFTW_FORWARD,
198  FFTW_NOTW,
199  177,
200  0,
201  (const int *) 0,
202 };
#define FFTW_KONST(x)
Definition: fftw-int.h:178
fftw_codelet_desc fftw_no_twiddle_8_desc
Definition: fn_8.c:193
void fftw_no_twiddle_8(const fftw_complex *input, fftw_complex *output, int istride, int ostride)
Definition: fn_8.c:43
#define c_re(c)
Definition: fftw.h:60
#define ASSERT_ALIGNED_DOUBLE
Definition: fftw-int.h:236
#define c_im(c)
Definition: fftw.h:61
float fftw_real
Definition: fftw.h:49