Subversion Repositories shark

Rev

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