Subversion Repositories shark

Rev

Rev 2 | 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:36 EDT 1999 */
22
 
23
#include <ports/fftw-int.h>
24
#include <ports/fftw.h>
25
 
26
/* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 11 */
27
 
28
/*
29
 * This function contains 60 FP additions, 50 FP multiplications,
30
 * (or, 60 additions, 50 multiplications, 0 fused multiply/add),
31
 * 17 stack variables, and 22 memory accesses
32
 */
33
static const fftw_real K654860733 = FFTW_KONST(+0.654860733945285064056925072466293553183791199);
34
static const fftw_real K142314838 = FFTW_KONST(+0.142314838273285140443792668616369668791051361);
35
static const fftw_real K959492973 = FFTW_KONST(+0.959492973614497389890368057066327699062454848);
36
static const fftw_real K415415013 = FFTW_KONST(+0.415415013001886425529274149229623203524004910);
37
static const fftw_real K841253532 = FFTW_KONST(+0.841253532831181168861811648919367717513292498);
38
static const fftw_real K989821441 = FFTW_KONST(+0.989821441880932732376092037776718787376519372);
39
static const fftw_real K909631995 = FFTW_KONST(+0.909631995354518371411715383079028460060241051);
40
static const fftw_real K281732556 = FFTW_KONST(+0.281732556841429697711417915346616899035777899);
41
static const fftw_real K540640817 = FFTW_KONST(+0.540640817455597582107635954318691695431770608);
42
static const fftw_real K755749574 = FFTW_KONST(+0.755749574354258283774035843972344420179717445);
43
 
44
/*
45
 * Generator Id's :
46
 * $Id: frc_11.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
47
 * $Id: frc_11.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
48
 * $Id: frc_11.c,v 1.1.1.1 2002-03-29 14:12:58 pj Exp $
49
 */
50
 
51
void fftw_real2hc_11(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride)
52
{
53
     fftw_real tmp1;
54
     fftw_real tmp4;
55
     fftw_real tmp21;
56
     fftw_real tmp16;
57
     fftw_real tmp17;
58
     fftw_real tmp13;
59
     fftw_real tmp18;
60
     fftw_real tmp10;
61
     fftw_real tmp20;
62
     fftw_real tmp7;
63
     fftw_real tmp19;
64
     fftw_real tmp11;
65
     fftw_real tmp12;
66
     ASSERT_ALIGNED_DOUBLE();
67
     tmp1 = input[0];
68
     {
69
          fftw_real tmp2;
70
          fftw_real tmp3;
71
          fftw_real tmp14;
72
          fftw_real tmp15;
73
          ASSERT_ALIGNED_DOUBLE();
74
          tmp2 = input[2 * istride];
75
          tmp3 = input[9 * istride];
76
          tmp4 = tmp2 + tmp3;
77
          tmp21 = tmp3 - tmp2;
78
          tmp14 = input[istride];
79
          tmp15 = input[10 * istride];
80
          tmp16 = tmp14 + tmp15;
81
          tmp17 = tmp15 - tmp14;
82
     }
83
     tmp11 = input[3 * istride];
84
     tmp12 = input[8 * istride];
85
     tmp13 = tmp11 + tmp12;
86
     tmp18 = tmp12 - tmp11;
87
     {
88
          fftw_real tmp8;
89
          fftw_real tmp9;
90
          fftw_real tmp5;
91
          fftw_real tmp6;
92
          ASSERT_ALIGNED_DOUBLE();
93
          tmp8 = input[5 * istride];
94
          tmp9 = input[6 * istride];
95
          tmp10 = tmp8 + tmp9;
96
          tmp20 = tmp9 - tmp8;
97
          tmp5 = input[4 * istride];
98
          tmp6 = input[7 * istride];
99
          tmp7 = tmp5 + tmp6;
100
          tmp19 = tmp6 - tmp5;
101
     }
102
     imag_output[4 * imag_ostride] = (K755749574 * tmp17) + (K540640817 * tmp18) + (K281732556 * tmp19) - (K909631995 * tmp20) - (K989821441 * tmp21);
103
     imag_output[imag_ostride] = (K540640817 * tmp17) + (K909631995 * tmp21) + (K989821441 * tmp18) + (K755749574 * tmp19) + (K281732556 * tmp20);
104
     imag_output[5 * imag_ostride] = (K281732556 * tmp17) + (K755749574 * tmp18) + (K989821441 * tmp20) - (K909631995 * tmp19) - (K540640817 * tmp21);
105
     imag_output[2 * imag_ostride] = (K909631995 * tmp17) + (K755749574 * tmp21) - (K540640817 * tmp20) - (K989821441 * tmp19) - (K281732556 * tmp18);
106
     imag_output[3 * imag_ostride] = (K989821441 * tmp17) + (K540640817 * tmp19) + (K755749574 * tmp20) - (K909631995 * tmp18) - (K281732556 * tmp21);
107
     real_output[4 * real_ostride] = tmp1 + (K841253532 * tmp13) + (K415415013 * tmp10) - (K959492973 * tmp7) - (K142314838 * tmp4) - (K654860733 * tmp16);
108
     real_output[5 * real_ostride] = tmp1 + (K841253532 * tmp4) + (K415415013 * tmp7) - (K142314838 * tmp10) - (K654860733 * tmp13) - (K959492973 * tmp16);
109
     real_output[real_ostride] = tmp1 + (K841253532 * tmp16) + (K415415013 * tmp4) - (K959492973 * tmp10) - (K654860733 * tmp7) - (K142314838 * tmp13);
110
     real_output[0] = tmp1 + tmp16 + tmp4 + tmp13 + tmp7 + tmp10;
111
     real_output[3 * real_ostride] = tmp1 + (K415415013 * tmp13) + (K841253532 * tmp7) - (K654860733 * tmp10) - (K959492973 * tmp4) - (K142314838 * tmp16);
112
     real_output[2 * real_ostride] = tmp1 + (K415415013 * tmp16) + (K841253532 * tmp10) - (K142314838 * tmp7) - (K959492973 * tmp13) - (K654860733 * tmp4);
113
}
114
 
115
fftw_codelet_desc fftw_real2hc_11_desc =
116
{
117
     "fftw_real2hc_11",
118
     (void (*)()) fftw_real2hc_11,
119
     11,
120
     FFTW_FORWARD,
121
     FFTW_REAL2HC,
122
     244,
123
     0,
124
     (const int *) 0,
125
};