Subversion Repositories shark

Rev

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