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:33 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 6 */
27
 
28
/*
29
 * This function contains 14 FP additions, 4 FP multiplications,
30
 * (or, 12 additions, 2 multiplications, 2 fused multiply/add),
31
 * 14 stack variables, and 12 memory accesses
32
 */
33
static const fftw_real K500000000 = FFTW_KONST(+0.500000000000000000000000000000000000000000000);
34
static const fftw_real K866025403 = FFTW_KONST(+0.866025403784438646763723170752936183471402627);
35
 
36
/*
37
 * Generator Id's :
107 pj 38
 * $Id: frc_6.c,v 1.2 2003-03-24 11:14:59 pj Exp $
39
 * $Id: frc_6.c,v 1.2 2003-03-24 11:14:59 pj Exp $
40
 * $Id: frc_6.c,v 1.2 2003-03-24 11:14:59 pj Exp $
2 pj 41
 */
42
 
43
void fftw_real2hc_6(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride)
44
{
45
     fftw_real tmp3;
46
     fftw_real tmp13;
47
     fftw_real tmp9;
48
     fftw_real tmp11;
49
     fftw_real tmp6;
50
     fftw_real tmp12;
51
     fftw_real tmp1;
52
     fftw_real tmp2;
53
     fftw_real tmp10;
54
     fftw_real tmp14;
55
     ASSERT_ALIGNED_DOUBLE();
56
     tmp1 = input[0];
57
     tmp2 = input[3 * istride];
58
     tmp3 = tmp1 - tmp2;
59
     tmp13 = tmp1 + tmp2;
60
     {
61
          fftw_real tmp7;
62
          fftw_real tmp8;
63
          fftw_real tmp4;
64
          fftw_real tmp5;
65
          ASSERT_ALIGNED_DOUBLE();
66
          tmp7 = input[4 * istride];
67
          tmp8 = input[istride];
68
          tmp9 = tmp7 - tmp8;
69
          tmp11 = tmp7 + tmp8;
70
          tmp4 = input[2 * istride];
71
          tmp5 = input[5 * istride];
72
          tmp6 = tmp4 - tmp5;
73
          tmp12 = tmp4 + tmp5;
74
     }
75
     imag_output[imag_ostride] = K866025403 * (tmp9 - tmp6);
76
     tmp10 = tmp6 + tmp9;
77
     real_output[real_ostride] = tmp3 - (K500000000 * tmp10);
78
     real_output[3 * real_ostride] = tmp3 + tmp10;
79
     imag_output[2 * imag_ostride] = -(K866025403 * (tmp11 - tmp12));
80
     tmp14 = tmp12 + tmp11;
81
     real_output[2 * real_ostride] = tmp13 - (K500000000 * tmp14);
82
     real_output[0] = tmp13 + tmp14;
83
}
84
 
85
fftw_codelet_desc fftw_real2hc_6_desc =
86
{
87
     "fftw_real2hc_6",
88
     (void (*)()) fftw_real2hc_6,
89
     6,
90
     FFTW_FORWARD,
91
     FFTW_REAL2HC,
92
     134,
93
     0,
94
     (const int *) 0,
95
};