Rev 2 | 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:34 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 8 */ |
||
27 | |||
28 | /* |
||
29 | * This function contains 20 FP additions, 2 FP multiplications, |
||
30 | * (or, 20 additions, 2 multiplications, 0 fused multiply/add), |
||
31 | * 12 stack variables, and 16 memory accesses |
||
32 | */ |
||
33 | static const fftw_real K707106781 = FFTW_KONST(+0.707106781186547524400844362104849039284835938); |
||
34 | |||
35 | /* |
||
36 | * Generator Id's : |
||
37 | * $Id: frc_8.c,v 1.1.1.1 2002-03-29 14:12:59 pj Exp $ |
||
38 | * $Id: frc_8.c,v 1.1.1.1 2002-03-29 14:12:59 pj Exp $ |
||
39 | * $Id: frc_8.c,v 1.1.1.1 2002-03-29 14:12:59 pj Exp $ |
||
40 | */ |
||
41 | |||
42 | void fftw_real2hc_8(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride) |
||
43 | { |
||
44 | fftw_real tmp3; |
||
45 | fftw_real tmp7; |
||
46 | fftw_real tmp13; |
||
47 | fftw_real tmp19; |
||
48 | fftw_real tmp6; |
||
49 | fftw_real tmp16; |
||
50 | fftw_real tmp10; |
||
51 | fftw_real tmp18; |
||
52 | ASSERT_ALIGNED_DOUBLE(); |
||
53 | { |
||
54 | fftw_real tmp1; |
||
55 | fftw_real tmp2; |
||
56 | fftw_real tmp11; |
||
57 | fftw_real tmp12; |
||
58 | ASSERT_ALIGNED_DOUBLE(); |
||
59 | tmp1 = input[0]; |
||
60 | tmp2 = input[4 * istride]; |
||
61 | tmp3 = tmp1 + tmp2; |
||
62 | tmp7 = tmp1 - tmp2; |
||
63 | tmp11 = input[7 * istride]; |
||
64 | tmp12 = input[3 * istride]; |
||
65 | tmp13 = tmp11 - tmp12; |
||
66 | tmp19 = tmp11 + tmp12; |
||
67 | } |
||
68 | { |
||
69 | fftw_real tmp4; |
||
70 | fftw_real tmp5; |
||
71 | fftw_real tmp8; |
||
72 | fftw_real tmp9; |
||
73 | ASSERT_ALIGNED_DOUBLE(); |
||
74 | tmp4 = input[2 * istride]; |
||
75 | tmp5 = input[6 * istride]; |
||
76 | tmp6 = tmp4 + tmp5; |
||
77 | tmp16 = tmp4 - tmp5; |
||
78 | tmp8 = input[istride]; |
||
79 | tmp9 = input[5 * istride]; |
||
80 | tmp10 = tmp8 - tmp9; |
||
81 | tmp18 = tmp8 + tmp9; |
||
82 | } |
||
83 | { |
||
84 | fftw_real tmp17; |
||
85 | fftw_real tmp20; |
||
86 | fftw_real tmp14; |
||
87 | fftw_real tmp15; |
||
88 | ASSERT_ALIGNED_DOUBLE(); |
||
89 | real_output[2 * real_ostride] = tmp3 - tmp6; |
||
90 | tmp17 = tmp3 + tmp6; |
||
91 | tmp20 = tmp18 + tmp19; |
||
92 | real_output[4 * real_ostride] = tmp17 - tmp20; |
||
93 | real_output[0] = tmp17 + tmp20; |
||
94 | imag_output[2 * imag_ostride] = tmp19 - tmp18; |
||
95 | tmp14 = K707106781 * (tmp10 + tmp13); |
||
96 | real_output[3 * real_ostride] = tmp7 - tmp14; |
||
97 | real_output[real_ostride] = tmp7 + tmp14; |
||
98 | tmp15 = K707106781 * (tmp13 - tmp10); |
||
99 | imag_output[imag_ostride] = tmp15 - tmp16; |
||
100 | imag_output[3 * imag_ostride] = tmp16 + tmp15; |
||
101 | } |
||
102 | } |
||
103 | |||
104 | fftw_codelet_desc fftw_real2hc_8_desc = |
||
105 | { |
||
106 | "fftw_real2hc_8", |
||
107 | (void (*)()) fftw_real2hc_8, |
||
108 | 8, |
||
109 | FFTW_FORWARD, |
||
110 | FFTW_REAL2HC, |
||
111 | 178, |
||
112 | 0, |
||
113 | (const int *) 0, |
||
114 | }; |