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:54:35 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 -real2hc 9 */
27
 
28
/*
29
 * This function contains 38 FP additions, 26 FP multiplications,
30
 * (or, 29 additions, 17 multiplications, 9 fused multiply/add),
31
 * 21 stack variables, and 18 memory accesses
32
 */
33
static const fftw_real K342020143 = FFTW_KONST(+0.342020143325668733044099614682259580763083368);
34
static const fftw_real K813797681 = FFTW_KONST(+0.813797681349373692844693217248393223289101568);
35
static const fftw_real K939692620 = FFTW_KONST(+0.939692620785908384054109277324731469936208134);
36
static const fftw_real K296198132 = FFTW_KONST(+0.296198132726023843175338011893050938967728390);
37
static const fftw_real K852868531 = FFTW_KONST(+0.852868531952443209628250963940074071936020296);
38
static const fftw_real K173648177 = FFTW_KONST(+0.173648177666930348851716626769314796000375677);
39
static const fftw_real K556670399 = FFTW_KONST(+0.556670399226419366452912952047023132968291906);
40
static const fftw_real K766044443 = FFTW_KONST(+0.766044443118978035202392650555416673935832457);
41
static const fftw_real K984807753 = FFTW_KONST(+0.984807753012208059366743024589523013670643252);
42
static const fftw_real K150383733 = FFTW_KONST(+0.150383733180435296639271897612501926072238258);
43
static const fftw_real K642787609 = FFTW_KONST(+0.642787609686539326322643409907263432907559884);
44
static const fftw_real K663413948 = FFTW_KONST(+0.663413948168938396205421319635891297216863310);
45
static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627);
46
static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000);
47
 
48
/*
49
 * Generator Id's :
107 pj 50
 * $Id: frc_9.c,v 1.2 2003-03-24 11:14:59 pj Exp $
51
 * $Id: frc_9.c,v 1.2 2003-03-24 11:14:59 pj Exp $
52
 * $Id: frc_9.c,v 1.2 2003-03-24 11:14:59 pj Exp $
2 pj 53
 */
54
 
55
void fftw_real2hc_9(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride)
56
{
57
     fftw_real tmp1;
58
     fftw_real tmp15;
59
     fftw_real tmp20;
60
     fftw_real tmp19;
61
     fftw_real tmp4;
62
     fftw_real tmp27;
63
     fftw_real tmp10;
64
     fftw_real tmp18;
65
     fftw_real tmp21;
66
     fftw_real tmp2;
67
     fftw_real tmp3;
68
     fftw_real tmp5;
69
     fftw_real tmp16;
70
     ASSERT_ALIGNED_DOUBLE();
71
     tmp1 = input[0];
72
     {
73
          fftw_real tmp11;
74
          fftw_real tmp12;
75
          fftw_real tmp13;
76
          fftw_real tmp14;
77
          ASSERT_ALIGNED_DOUBLE();
78
          tmp11 = input[2 * istride];
79
          tmp12 = input[5 * istride];
80
          tmp13 = input[8 * istride];
81
          tmp14 = tmp12 + tmp13;
82
          tmp15 = tmp11 + tmp14;
83
          tmp20 = tmp11 - (K500000000 * tmp14);
84
          tmp19 = tmp13 - tmp12;
85
     }
86
     tmp2 = input[3 * istride];
87
     tmp3 = input[6 * istride];
88
     tmp4 = tmp2 + tmp3;
89
     tmp27 = tmp3 - tmp2;
90
     {
91
          fftw_real tmp6;
92
          fftw_real tmp7;
93
          fftw_real tmp8;
94
          fftw_real tmp9;
95
          ASSERT_ALIGNED_DOUBLE();
96
          tmp6 = input[istride];
97
          tmp7 = input[4 * istride];
98
          tmp8 = input[7 * istride];
99
          tmp9 = tmp7 + tmp8;
100
          tmp10 = tmp6 + tmp9;
101
          tmp18 = tmp6 - (K500000000 * tmp9);
102
          tmp21 = tmp8 - tmp7;
103
     }
104
     imag_output[3 * imag_ostride] = K866025403 * (tmp15 - tmp10);
105
     tmp5 = tmp1 + tmp4;
106
     tmp16 = tmp10 + tmp15;
107
     real_output[3 * real_ostride] = tmp5 - (K500000000 * tmp16);
108
     real_output[0] = tmp5 + tmp16;
109
     {
110
          fftw_real tmp29;
111
          fftw_real tmp25;
112
          fftw_real tmp26;
113
          fftw_real tmp28;
114
          fftw_real tmp17;
115
          fftw_real tmp22;
116
          fftw_real tmp23;
117
          fftw_real tmp24;
118
          ASSERT_ALIGNED_DOUBLE();
119
          tmp29 = K866025403 * tmp27;
120
          tmp25 = (K663413948 * tmp21) - (K642787609 * tmp18);
121
          tmp26 = (K150383733 * tmp19) - (K984807753 * tmp20);
122
          tmp28 = tmp25 + tmp26;
123
          tmp17 = tmp1 - (K500000000 * tmp4);
124
          tmp22 = (K766044443 * tmp18) + (K556670399 * tmp21);
125
          tmp23 = (K173648177 * tmp20) + (K852868531 * tmp19);
126
          tmp24 = tmp22 + tmp23;
127
          real_output[real_ostride] = tmp17 + tmp24;
128
          real_output[4 * real_ostride] = tmp17 + (K866025403 * (tmp25 - tmp26)) - (K500000000 * tmp24);
129
          real_output[2 * real_ostride] = tmp17 + (K173648177 * tmp18) - (K296198132 * tmp19) - (K939692620 * tmp20) - (K852868531 * tmp21);
130
          imag_output[imag_ostride] = tmp29 + tmp28;
131
          imag_output[4 * imag_ostride] = (K866025403 * (tmp27 + (tmp23 - tmp22))) - (K500000000 * tmp28);
132
          imag_output[2 * imag_ostride] = (K813797681 * tmp19) - (K342020143 * tmp20) - (K150383733 * tmp21) - (K984807753 * tmp18) - tmp29;
133
     }
134
}
135
 
136
fftw_codelet_desc fftw_real2hc_9_desc =
137
{
138
     "fftw_real2hc_9",
139
     (void (*)()) fftw_real2hc_9,
140
     9,
141
     FFTW_FORWARD,
142
     FFTW_REAL2HC,
143
     200,
144
     0,
145
     (const int *) 0,
146
};