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:55:06 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 8 */
27
 
28
/*
29
 * This function contains 20 FP additions, 6 FP multiplications,
30
 * (or, 20 additions, 6 multiplications, 0 fused multiply/add),
31
 * 18 stack variables, and 16 memory accesses
32
 */
33
static const fftw_real K1_414213562 = FFTW_KONST(+1.414213562373095048801688724209698078569671875);
34
static const fftw_real K2_000000000 = FFTW_KONST(+2.000000000000000000000000000000000000000000000);
35
 
36
/*
37
 * Generator Id's :
107 pj 38
 * $Id: fcr_8.c,v 1.2 2003-03-24 11:14:56 pj Exp $
39
 * $Id: fcr_8.c,v 1.2 2003-03-24 11:14:56 pj Exp $
40
 * $Id: fcr_8.c,v 1.2 2003-03-24 11:14:56 pj Exp $
2 pj 41
 */
42
 
43
void fftw_hc2real_8(const fftw_real *real_input, const fftw_real *imag_input, fftw_real *output, int real_istride, int imag_istride, int ostride)
44
{
45
     fftw_real tmp5;
46
     fftw_real tmp12;
47
     fftw_real tmp3;
48
     fftw_real tmp10;
49
     fftw_real tmp9;
50
     fftw_real tmp14;
51
     fftw_real tmp17;
52
     fftw_real tmp22;
53
     fftw_real tmp6;
54
     fftw_real tmp21;
55
     ASSERT_ALIGNED_DOUBLE();
56
     {
57
          fftw_real tmp4;
58
          fftw_real tmp11;
59
          fftw_real tmp1;
60
          fftw_real tmp2;
61
          ASSERT_ALIGNED_DOUBLE();
62
          tmp4 = real_input[2 * real_istride];
63
          tmp5 = K2_000000000 * tmp4;
64
          tmp11 = imag_input[2 * imag_istride];
65
          tmp12 = K2_000000000 * tmp11;
66
          tmp1 = real_input[0];
67
          tmp2 = real_input[4 * real_istride];
68
          tmp3 = tmp1 + tmp2;
69
          tmp10 = tmp1 - tmp2;
70
          {
71
               fftw_real tmp7;
72
               fftw_real tmp8;
73
               fftw_real tmp15;
74
               fftw_real tmp16;
75
               ASSERT_ALIGNED_DOUBLE();
76
               tmp7 = real_input[real_istride];
77
               tmp8 = real_input[3 * real_istride];
78
               tmp9 = K2_000000000 * (tmp7 + tmp8);
79
               tmp14 = tmp7 - tmp8;
80
               tmp15 = imag_input[3 * imag_istride];
81
               tmp16 = imag_input[imag_istride];
82
               tmp17 = tmp15 + tmp16;
83
               tmp22 = K2_000000000 * (tmp16 - tmp15);
84
          }
85
     }
86
     tmp6 = tmp3 + tmp5;
87
     output[4 * ostride] = tmp6 - tmp9;
88
     output[0] = tmp6 + tmp9;
89
     tmp21 = tmp3 - tmp5;
90
     output[2 * ostride] = tmp21 - tmp22;
91
     output[6 * ostride] = tmp21 + tmp22;
92
     {
93
          fftw_real tmp13;
94
          fftw_real tmp18;
95
          fftw_real tmp19;
96
          fftw_real tmp20;
97
          ASSERT_ALIGNED_DOUBLE();
98
          tmp13 = tmp10 - tmp12;
99
          tmp18 = K1_414213562 * (tmp14 - tmp17);
100
          output[5 * ostride] = tmp13 - tmp18;
101
          output[ostride] = tmp13 + tmp18;
102
          tmp19 = tmp10 + tmp12;
103
          tmp20 = K1_414213562 * (tmp14 + tmp17);
104
          output[3 * ostride] = tmp19 - tmp20;
105
          output[7 * ostride] = tmp19 + tmp20;
106
     }
107
}
108
 
109
fftw_codelet_desc fftw_hc2real_8_desc =
110
{
111
     "fftw_hc2real_8",
112
     (void (*)()) fftw_hc2real_8,
113
     8,
114
     FFTW_BACKWARD,
115
     FFTW_HC2REAL,
116
     191,
117
     0,
118
     (const int *) 0,
119
};