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:06:18 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 -notwiddleinv 4 */
27
28 /*
29 * This function contains 16 FP additions, 0 FP multiplications,
30 * (or, 16 additions, 0 multiplications, 0 fused multiply/add),
31 * 12 stack variables, and 16 memory accesses
32 */
33
34 /*
35 * Generator Id's :
36 * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
37 * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
38 * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
39 */
40
fftwi_no_twiddle_4(const fftw_complex * input,fftw_complex * output,int istride,int ostride)41 void fftwi_no_twiddle_4(const fftw_complex *input, fftw_complex *output,
42 int istride, int ostride)
43 {
44 fftw_real tmp3;
45 fftw_real tmp11;
46 fftw_real tmp10;
47 fftw_real tmp15;
48 fftw_real tmp6;
49 fftw_real tmp7;
50 fftw_real tmp14;
51 fftw_real tmp16;
52 ASSERT_ALIGNED_DOUBLE;
53 {
54 fftw_real tmp1;
55 fftw_real tmp2;
56 fftw_real tmp8;
57 fftw_real tmp9;
58 ASSERT_ALIGNED_DOUBLE;
59 tmp1 = c_re(input[0]);
60 tmp2 = c_re(input[2 * istride]);
61 tmp3 = tmp1 + tmp2;
62 tmp11 = tmp1 - tmp2;
63 tmp8 = c_im(input[0]);
64 tmp9 = c_im(input[2 * istride]);
65 tmp10 = tmp8 - tmp9;
66 tmp15 = tmp8 + tmp9;
67 }
68 {
69 fftw_real tmp4;
70 fftw_real tmp5;
71 fftw_real tmp12;
72 fftw_real tmp13;
73 ASSERT_ALIGNED_DOUBLE;
74 tmp4 = c_re(input[istride]);
75 tmp5 = c_re(input[3 * istride]);
76 tmp6 = tmp4 + tmp5;
77 tmp7 = tmp4 - tmp5;
78 tmp12 = c_im(input[istride]);
79 tmp13 = c_im(input[3 * istride]);
80 tmp14 = tmp12 - tmp13;
81 tmp16 = tmp12 + tmp13;
82 }
83 c_re(output[2 * ostride]) = tmp3 - tmp6;
84 c_re(output[0]) = tmp3 + tmp6;
85 c_im(output[ostride]) = tmp7 + tmp10;
86 c_im(output[3 * ostride]) = tmp10 - tmp7;
87 c_re(output[ostride]) = tmp11 - tmp14;
88 c_re(output[3 * ostride]) = tmp11 + tmp14;
89 c_im(output[2 * ostride]) = tmp15 - tmp16;
90 c_im(output[0]) = tmp15 + tmp16;
91 }
92
93 fftw_codelet_desc fftwi_no_twiddle_4_desc = {
94 "fftwi_no_twiddle_4",
95 (void (*)()) fftwi_no_twiddle_4,
96 4,
97 FFTW_BACKWARD,
98 FFTW_NOTW,
99 100,
100 0,
101 (const int *) 0,
102 };
103