Subversion Repositories shark

Rev

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:55:07 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 -hc2real 12 */
27
 
28
/*
29
 * This function contains 38 FP additions, 10 FP multiplications,
30
 * (or, 34 additions, 6 multiplications, 4 fused multiply/add),
31
 * 22 stack variables, and 24 memory accesses
32
 */
33
static const fftw_real K1_732050807 = FFTW_KONST(+1.732050807568877293527446341505872366942805254);
34
static const fftw_real K2_000000000 = FFTW_KONST(+2.000000000000000000000000000000000000000000000);
35
 
36
/*
37
 * Generator Id's :
38
 * $Id: fcr_12.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $
39
 * $Id: fcr_12.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $
40
 * $Id: fcr_12.c,v 1.1.1.1 2002-03-29 14:12:57 pj Exp $
41
 */
42
 
43
void fftw_hc2real_12(const fftw_real *real_input, const fftw_real *imag_input, fftw_real *output, int real_istride, int imag_istride, int ostride)
44
{
45
     fftw_real tmp8;
46
     fftw_real tmp11;
47
     fftw_real tmp22;
48
     fftw_real tmp36;
49
     fftw_real tmp32;
50
     fftw_real tmp33;
51
     fftw_real tmp25;
52
     fftw_real tmp37;
53
     fftw_real tmp3;
54
     fftw_real tmp27;
55
     fftw_real tmp16;
56
     fftw_real tmp6;
57
     fftw_real tmp28;
58
     fftw_real tmp20;
59
     ASSERT_ALIGNED_DOUBLE();
60
     {
61
          fftw_real tmp9;
62
          fftw_real tmp10;
63
          fftw_real tmp23;
64
          fftw_real tmp24;
65
          ASSERT_ALIGNED_DOUBLE();
66
          tmp8 = real_input[3 * real_istride];
67
          tmp9 = real_input[5 * real_istride];
68
          tmp10 = real_input[real_istride];
69
          tmp11 = tmp9 + tmp10;
70
          tmp22 = (K2_000000000 * tmp8) - tmp11;
71
          tmp36 = K1_732050807 * (tmp9 - tmp10);
72
          tmp32 = imag_input[3 * imag_istride];
73
          tmp23 = imag_input[5 * imag_istride];
74
          tmp24 = imag_input[imag_istride];
75
          tmp33 = tmp23 + tmp24;
76
          tmp25 = K1_732050807 * (tmp23 - tmp24);
77
          tmp37 = (K2_000000000 * tmp32) + tmp33;
78
     }
79
     {
80
          fftw_real tmp15;
81
          fftw_real tmp1;
82
          fftw_real tmp2;
83
          fftw_real tmp13;
84
          fftw_real tmp14;
85
          ASSERT_ALIGNED_DOUBLE();
86
          tmp14 = imag_input[4 * imag_istride];
87
          tmp15 = K1_732050807 * tmp14;
88
          tmp1 = real_input[0];
89
          tmp2 = real_input[4 * real_istride];
90
          tmp13 = tmp1 - tmp2;
91
          tmp3 = tmp1 + (K2_000000000 * tmp2);
92
          tmp27 = tmp13 - tmp15;
93
          tmp16 = tmp13 + tmp15;
94
     }
95
     {
96
          fftw_real tmp19;
97
          fftw_real tmp4;
98
          fftw_real tmp5;
99
          fftw_real tmp17;
100
          fftw_real tmp18;
101
          ASSERT_ALIGNED_DOUBLE();
102
          tmp18 = imag_input[2 * imag_istride];
103
          tmp19 = K1_732050807 * tmp18;
104
          tmp4 = real_input[6 * real_istride];
105
          tmp5 = real_input[2 * real_istride];
106
          tmp17 = tmp4 - tmp5;
107
          tmp6 = tmp4 + (K2_000000000 * tmp5);
108
          tmp28 = tmp17 + tmp19;
109
          tmp20 = tmp17 - tmp19;
110
     }
111
     {
112
          fftw_real tmp7;
113
          fftw_real tmp12;
114
          fftw_real tmp39;
115
          fftw_real tmp40;
116
          ASSERT_ALIGNED_DOUBLE();
117
          tmp7 = tmp3 + tmp6;
118
          tmp12 = K2_000000000 * (tmp8 + tmp11);
119
          output[6 * ostride] = tmp7 - tmp12;
120
          output[0] = tmp7 + tmp12;
121
          {
122
               fftw_real tmp31;
123
               fftw_real tmp34;
124
               fftw_real tmp21;
125
               fftw_real tmp26;
126
               ASSERT_ALIGNED_DOUBLE();
127
               tmp31 = tmp3 - tmp6;
128
               tmp34 = K2_000000000 * (tmp32 - tmp33);
129
               output[9 * ostride] = tmp31 - tmp34;
130
               output[3 * ostride] = tmp31 + tmp34;
131
               tmp21 = tmp16 + tmp20;
132
               tmp26 = tmp22 - tmp25;
133
               output[2 * ostride] = tmp21 - tmp26;
134
               output[8 * ostride] = tmp21 + tmp26;
135
          }
136
          tmp39 = tmp16 - tmp20;
137
          tmp40 = tmp37 - tmp36;
138
          output[5 * ostride] = tmp39 - tmp40;
139
          output[11 * ostride] = tmp39 + tmp40;
140
          {
141
               fftw_real tmp35;
142
               fftw_real tmp38;
143
               fftw_real tmp29;
144
               fftw_real tmp30;
145
               ASSERT_ALIGNED_DOUBLE();
146
               tmp35 = tmp27 - tmp28;
147
               tmp38 = tmp36 + tmp37;
148
               output[ostride] = tmp35 - tmp38;
149
               output[7 * ostride] = tmp35 + tmp38;
150
               tmp29 = tmp27 + tmp28;
151
               tmp30 = tmp22 + tmp25;
152
               output[10 * ostride] = tmp29 - tmp30;
153
               output[4 * ostride] = tmp29 + tmp30;
154
          }
155
     }
156
}
157
 
158
fftw_codelet_desc fftw_hc2real_12_desc =
159
{
160
     "fftw_hc2real_12",
161
     (void (*)()) fftw_hc2real_12,
162
     12,
163
     FFTW_BACKWARD,
164
     FFTW_HC2REAL,
165
     279,
166
     0,
167
     (const int *) 0,
168
};