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:05 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 5 */
27
 
28
/*
29
 * This function contains 12 FP additions, 7 FP multiplications,
30
 * (or, 8 additions, 3 multiplications, 4 fused multiply/add),
31
 * 12 stack variables, and 10 memory accesses
32
 */
33
static const fftw_real K2_000000000 = FFTW_KONST(+2.000000000000000000000000000000000000000000000);
34
static const fftw_real K1_118033988 = FFTW_KONST(+1.118033988749894848204586834365638117720309180);
35
static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000);
36
static const fftw_real K1_902113032 = FFTW_KONST(+1.902113032590307144232878666758764286811397268);
37
static const fftw_real K1_175570504 = FFTW_KONST(+1.175570504584946258337411909278145537195304875);
38
 
39
/*
40
 * Generator Id's :
107 pj 41
 * $Id: fcr_5.c,v 1.2 2003-03-24 11:14:56 pj Exp $
42
 * $Id: fcr_5.c,v 1.2 2003-03-24 11:14:56 pj Exp $
43
 * $Id: fcr_5.c,v 1.2 2003-03-24 11:14:56 pj Exp $
2 pj 44
 */
45
 
46
void fftw_hc2real_5(const fftw_real *real_input, const fftw_real *imag_input, fftw_real *output, int real_istride, int imag_istride, int ostride)
47
{
48
     fftw_real tmp10;
49
     fftw_real tmp12;
50
     fftw_real tmp1;
51
     fftw_real tmp4;
52
     fftw_real tmp5;
53
     fftw_real tmp6;
54
     fftw_real tmp11;
55
     fftw_real tmp7;
56
     ASSERT_ALIGNED_DOUBLE();
57
     {
58
          fftw_real tmp8;
59
          fftw_real tmp9;
60
          fftw_real tmp2;
61
          fftw_real tmp3;
62
          ASSERT_ALIGNED_DOUBLE();
63
          tmp8 = imag_input[imag_istride];
64
          tmp9 = imag_input[2 * imag_istride];
65
          tmp10 = (K1_175570504 * tmp8) - (K1_902113032 * tmp9);
66
          tmp12 = (K1_902113032 * tmp8) + (K1_175570504 * tmp9);
67
          tmp1 = real_input[0];
68
          tmp2 = real_input[real_istride];
69
          tmp3 = real_input[2 * real_istride];
70
          tmp4 = tmp2 + tmp3;
71
          tmp5 = tmp1 - (K500000000 * tmp4);
72
          tmp6 = K1_118033988 * (tmp2 - tmp3);
73
     }
74
     output[0] = tmp1 + (K2_000000000 * tmp4);
75
     tmp11 = tmp6 + tmp5;
76
     output[ostride] = tmp11 - tmp12;
77
     output[4 * ostride] = tmp11 + tmp12;
78
     tmp7 = tmp5 - tmp6;
79
     output[2 * ostride] = tmp7 - tmp10;
80
     output[3 * ostride] = tmp7 + tmp10;
81
}
82
 
83
fftw_codelet_desc fftw_hc2real_5_desc =
84
{
85
     "fftw_hc2real_5",
86
     (void (*)()) fftw_hc2real_5,
87
     5,
88
     FFTW_BACKWARD,
89
     FFTW_HC2REAL,
90
     125,
91
     0,
92
     (const int *) 0,
93
};