Go to most recent revision | Details | 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:44 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 -notwiddleinv 5 */ |
||
27 | |||
28 | /* |
||
29 | * This function contains 32 FP additions, 12 FP multiplications, |
||
30 | * (or, 26 additions, 6 multiplications, 6 fused multiply/add), |
||
31 | * 16 stack variables, and 20 memory accesses |
||
32 | */ |
||
33 | static const fftw_real K250000000 = FFTW_KONST(+0.250000000000000000000000000000000000000000000); |
||
34 | static const fftw_real K951056516 = FFTW_KONST(+0.951056516295153572116439333379382143405698634); |
||
35 | static const fftw_real K587785252 = FFTW_KONST(+0.587785252292473129168705954639072768597652438); |
||
36 | static const fftw_real K559016994 = FFTW_KONST(+0.559016994374947424102293417182819058860154590); |
||
37 | |||
38 | /* |
||
39 | * Generator Id's : |
||
40 | * $Id: fni_5.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
41 | * $Id: fni_5.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
42 | * $Id: fni_5.c,v 1.1.1.1 2002-03-29 14:12:56 pj Exp $ |
||
43 | */ |
||
44 | |||
45 | void fftwi_no_twiddle_5(const fftw_complex *input, fftw_complex *output, int istride, int ostride) |
||
46 | { |
||
47 | fftw_real tmp1; |
||
48 | fftw_real tmp27; |
||
49 | fftw_real tmp8; |
||
50 | fftw_real tmp10; |
||
51 | fftw_real tmp21; |
||
52 | fftw_real tmp22; |
||
53 | fftw_real tmp14; |
||
54 | fftw_real tmp28; |
||
55 | fftw_real tmp26; |
||
56 | fftw_real tmp17; |
||
57 | ASSERT_ALIGNED_DOUBLE(); |
||
58 | tmp1 = c_re(input[0]); |
||
59 | tmp27 = c_im(input[0]); |
||
60 | { |
||
61 | fftw_real tmp2; |
||
62 | fftw_real tmp3; |
||
63 | fftw_real tmp4; |
||
64 | fftw_real tmp5; |
||
65 | fftw_real tmp6; |
||
66 | fftw_real tmp7; |
||
67 | ASSERT_ALIGNED_DOUBLE(); |
||
68 | tmp2 = c_re(input[istride]); |
||
69 | tmp3 = c_re(input[4 * istride]); |
||
70 | tmp4 = tmp2 + tmp3; |
||
71 | tmp5 = c_re(input[2 * istride]); |
||
72 | tmp6 = c_re(input[3 * istride]); |
||
73 | tmp7 = tmp5 + tmp6; |
||
74 | tmp8 = tmp4 + tmp7; |
||
75 | tmp10 = K559016994 * (tmp4 - tmp7); |
||
76 | tmp21 = tmp2 - tmp3; |
||
77 | tmp22 = tmp5 - tmp6; |
||
78 | } |
||
79 | { |
||
80 | fftw_real tmp12; |
||
81 | fftw_real tmp13; |
||
82 | fftw_real tmp24; |
||
83 | fftw_real tmp15; |
||
84 | fftw_real tmp16; |
||
85 | fftw_real tmp25; |
||
86 | ASSERT_ALIGNED_DOUBLE(); |
||
87 | tmp12 = c_im(input[istride]); |
||
88 | tmp13 = c_im(input[4 * istride]); |
||
89 | tmp24 = tmp12 + tmp13; |
||
90 | tmp15 = c_im(input[2 * istride]); |
||
91 | tmp16 = c_im(input[3 * istride]); |
||
92 | tmp25 = tmp15 + tmp16; |
||
93 | tmp14 = tmp12 - tmp13; |
||
94 | tmp28 = tmp24 + tmp25; |
||
95 | tmp26 = K559016994 * (tmp24 - tmp25); |
||
96 | tmp17 = tmp15 - tmp16; |
||
97 | } |
||
98 | c_re(output[0]) = tmp1 + tmp8; |
||
99 | { |
||
100 | fftw_real tmp18; |
||
101 | fftw_real tmp20; |
||
102 | fftw_real tmp11; |
||
103 | fftw_real tmp19; |
||
104 | fftw_real tmp9; |
||
105 | ASSERT_ALIGNED_DOUBLE(); |
||
106 | tmp18 = (K587785252 * tmp14) - (K951056516 * tmp17); |
||
107 | tmp20 = (K951056516 * tmp14) + (K587785252 * tmp17); |
||
108 | tmp9 = tmp1 - (K250000000 * tmp8); |
||
109 | tmp11 = tmp9 - tmp10; |
||
110 | tmp19 = tmp10 + tmp9; |
||
111 | c_re(output[2 * ostride]) = tmp11 - tmp18; |
||
112 | c_re(output[3 * ostride]) = tmp11 + tmp18; |
||
113 | c_re(output[ostride]) = tmp19 - tmp20; |
||
114 | c_re(output[4 * ostride]) = tmp19 + tmp20; |
||
115 | } |
||
116 | c_im(output[0]) = tmp27 + tmp28; |
||
117 | { |
||
118 | fftw_real tmp23; |
||
119 | fftw_real tmp31; |
||
120 | fftw_real tmp30; |
||
121 | fftw_real tmp32; |
||
122 | fftw_real tmp29; |
||
123 | ASSERT_ALIGNED_DOUBLE(); |
||
124 | tmp23 = (K951056516 * tmp21) + (K587785252 * tmp22); |
||
125 | tmp31 = (K587785252 * tmp21) - (K951056516 * tmp22); |
||
126 | tmp29 = tmp27 - (K250000000 * tmp28); |
||
127 | tmp30 = tmp26 + tmp29; |
||
128 | tmp32 = tmp29 - tmp26; |
||
129 | c_im(output[ostride]) = tmp23 + tmp30; |
||
130 | c_im(output[4 * ostride]) = tmp30 - tmp23; |
||
131 | c_im(output[2 * ostride]) = tmp31 + tmp32; |
||
132 | c_im(output[3 * ostride]) = tmp32 - tmp31; |
||
133 | } |
||
134 | } |
||
135 | |||
136 | fftw_codelet_desc fftwi_no_twiddle_5_desc = |
||
137 | { |
||
138 | "fftwi_no_twiddle_5", |
||
139 | (void (*)()) fftwi_no_twiddle_5, |
||
140 | 5, |
||
141 | FFTW_BACKWARD, |
||
142 | FFTW_NOTW, |
||
143 | 122, |
||
144 | 0, |
||
145 | (const int *) 0, |
||
146 | }; |