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