Subversion Repositories shark

Rev

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