~ubuntu-branches/ubuntu/quantal/fftw/quantal

« back to all changes in this revision

Viewing changes to rfftw/frc_7.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-29 01:48:33 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20111129014833-3leawsns2nghyaoj
Tags: 2.1.5-1
* Team upload.
* New upstream release
* Package moved into the Debian Science team (no answer from the previous
  maintainer) and package not maintained.
* Standards-Version updated to version 3.9.2
* Vcs-Browser & Vcs-Svn updated
* Switch to mpi-default-dev (Closes: #571446)
* Get ride of .la files (Closes: #633175)
* Fix lintian warning debhelper-but-no-misc-depends
* Fix lintian warning patch-system-but-direct-changes-in-diff 
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
 
2
 * Copyright (c) 1997-1999, 2003 Massachusetts Institute of Technology
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
18
18
 */
19
19
 
20
20
/* This file was automatically generated --- DO NOT EDIT */
21
 
/* Generated on Sun Nov  7 20:43:54 EST 1999 */
22
 
 
23
 
#include <fftw-int.h>
24
 
#include <fftw.h>
25
 
 
26
 
/* Generated by: ./genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 7 */
 
21
/* Generated on Mon Mar 24 02:05:53 EST 2003 */
 
22
 
 
23
#include "fftw-int.h"
 
24
#include "fftw.h"
 
25
 
 
26
/* Generated by: /homee/stevenj/cvs/fftw/gensrc/genfft -magic-alignment-check -magic-twiddle-load-all -magic-variables 4 -magic-loopi -real2hc 7 */
27
27
 
28
28
/*
29
29
 * This function contains 24 FP additions, 18 FP multiplications,
30
30
 * (or, 24 additions, 18 multiplications, 0 fused multiply/add),
31
31
 * 13 stack variables, and 14 memory accesses
32
32
 */
33
 
static const fftw_real K222520933 = FFTW_KONST(+0.222520933956314404288902564496794759466355569);
34
 
static const fftw_real K900968867 = FFTW_KONST(+0.900968867902419126236102319507445051165919162);
35
 
static const fftw_real K623489801 = FFTW_KONST(+0.623489801858733530525004884004239810632274731);
36
 
static const fftw_real K433883739 = FFTW_KONST(+0.433883739117558120475768332848358754609990728);
37
 
static const fftw_real K781831482 = FFTW_KONST(+0.781831482468029808708444526674057750232334519);
38
 
static const fftw_real K974927912 = FFTW_KONST(+0.974927912181823607018131682993931217232785801);
 
33
static const fftw_real K222520933 =
 
34
FFTW_KONST(+0.222520933956314404288902564496794759466355569);
 
35
static const fftw_real K900968867 =
 
36
FFTW_KONST(+0.900968867902419126236102319507445051165919162);
 
37
static const fftw_real K623489801 =
 
38
FFTW_KONST(+0.623489801858733530525004884004239810632274731);
 
39
static const fftw_real K433883739 =
 
40
FFTW_KONST(+0.433883739117558120475768332848358754609990728);
 
41
static const fftw_real K781831482 =
 
42
FFTW_KONST(+0.781831482468029808708444526674057750232334519);
 
43
static const fftw_real K974927912 =
 
44
FFTW_KONST(+0.974927912181823607018131682993931217232785801);
39
45
 
40
46
/*
41
47
 * Generator Id's : 
42
 
 * $Id: exprdag.ml,v 1.41 1999/05/26 15:44:14 fftw Exp $
43
 
 * $Id: fft.ml,v 1.43 1999/05/17 19:44:18 fftw Exp $
44
 
 * $Id: to_c.ml,v 1.25 1999/10/26 21:41:32 stevenj Exp $
 
48
 * $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
 
49
 * $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
 
50
 * $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
45
51
 */
46
52
 
47
 
void fftw_real2hc_7(const fftw_real *input, fftw_real *real_output, fftw_real *imag_output, int istride, int real_ostride, int imag_ostride)
 
53
void fftw_real2hc_7(const fftw_real *input, fftw_real *real_output,
 
54
                    fftw_real *imag_output, int istride, int real_ostride,
 
55
                    int imag_ostride)
48
56
{
49
57
     fftw_real tmp1;
50
58
     fftw_real tmp10;
51
 
     fftw_real tmp11;
 
59
     fftw_real tmp13;
52
60
     fftw_real tmp4;
53
 
     fftw_real tmp13;
 
61
     fftw_real tmp12;
54
62
     fftw_real tmp7;
55
 
     fftw_real tmp12;
 
63
     fftw_real tmp11;
56
64
     fftw_real tmp8;
57
65
     fftw_real tmp9;
58
66
     ASSERT_ALIGNED_DOUBLE;
59
67
     tmp1 = input[0];
60
 
     tmp8 = input[istride];
61
 
     tmp9 = input[6 * istride];
 
68
     tmp8 = input[2 * istride];
 
69
     tmp9 = input[5 * istride];
62
70
     tmp10 = tmp8 + tmp9;
63
 
     tmp11 = tmp9 - tmp8;
 
71
     tmp13 = tmp9 - tmp8;
64
72
     {
65
73
          fftw_real tmp2;
66
74
          fftw_real tmp3;
67
75
          fftw_real tmp5;
68
76
          fftw_real tmp6;
69
77
          ASSERT_ALIGNED_DOUBLE;
70
 
          tmp2 = input[2 * istride];
71
 
          tmp3 = input[5 * istride];
 
78
          tmp2 = input[3 * istride];
 
79
          tmp3 = input[4 * istride];
72
80
          tmp4 = tmp2 + tmp3;
73
 
          tmp13 = tmp3 - tmp2;
74
 
          tmp5 = input[3 * istride];
75
 
          tmp6 = input[4 * istride];
 
81
          tmp12 = tmp3 - tmp2;
 
82
          tmp5 = input[istride];
 
83
          tmp6 = input[6 * istride];
76
84
          tmp7 = tmp5 + tmp6;
77
 
          tmp12 = tmp6 - tmp5;
 
85
          tmp11 = tmp6 - tmp5;
78
86
     }
79
 
     imag_output[2 * imag_ostride] = (K974927912 * tmp11) - (K781831482 * tmp12) - (K433883739 * tmp13);
80
 
     imag_output[imag_ostride] = (K781831482 * tmp11) + (K974927912 * tmp13) + (K433883739 * tmp12);
81
 
     imag_output[3 * imag_ostride] = (K433883739 * tmp11) + (K974927912 * tmp12) - (K781831482 * tmp13);
82
 
     real_output[2 * real_ostride] = tmp1 + (K623489801 * tmp7) - (K900968867 * tmp4) - (K222520933 * tmp10);
83
 
     real_output[real_ostride] = tmp1 + (K623489801 * tmp10) - (K900968867 * tmp7) - (K222520933 * tmp4);
84
 
     real_output[3 * real_ostride] = tmp1 + (K623489801 * tmp4) - (K222520933 * tmp7) - (K900968867 * tmp10);
 
87
     imag_output[2 * imag_ostride] =
 
88
         (K974927912 * tmp11) - (K781831482 * tmp12) -
 
89
         (K433883739 * tmp13);
 
90
     imag_output[imag_ostride] =
 
91
         (K974927912 * tmp13) + (K433883739 * tmp12) +
 
92
         (K781831482 * tmp11);
 
93
     imag_output[3 * imag_ostride] =
 
94
         (K974927912 * tmp12) + (K433883739 * tmp11) -
 
95
         (K781831482 * tmp13);
85
96
     real_output[0] = tmp1 + tmp10 + tmp4 + tmp7;
 
97
     real_output[3 * real_ostride] =
 
98
         tmp1 + (K623489801 * tmp10) - (K900968867 * tmp7) -
 
99
         (K222520933 * tmp4);
 
100
     real_output[2 * real_ostride] =
 
101
         tmp1 + (K623489801 * tmp4) - (K222520933 * tmp7) -
 
102
         (K900968867 * tmp10);
 
103
     real_output[real_ostride] =
 
104
         tmp1 + (K623489801 * tmp7) - (K900968867 * tmp4) -
 
105
         (K222520933 * tmp10);
86
106
}
87
107
 
88
 
fftw_codelet_desc fftw_real2hc_7_desc =
89
 
{
 
108
fftw_codelet_desc fftw_real2hc_7_desc = {
90
109
     "fftw_real2hc_7",
91
110
     (void (*)()) fftw_real2hc_7,
92
111
     7,