~ubuntu-branches/ubuntu/raring/fftw3/raring-proposed

« back to all changes in this revision

Viewing changes to rdft/codelets/hc2r/hc2rIII_4.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2006-05-31 13:44:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060531134405-ol9hrbg6bh81sg0c
Tags: 3.1.1-1
* New upstream release (closes: #350327, #338487, #338501)
* Add --enable-portable-binary to use -mtune instead of -march
* Use --with-gcc-arch=G5 / pentium4 on powerpc / i386
* Updated Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2003 Matteo Frigo
3
 
 * Copyright (c) 2003 Massachusetts Institute of Technology
 
2
 * Copyright (c) 2003, 2006 Matteo Frigo
 
3
 * Copyright (c) 2003, 2006 Massachusetts Institute of Technology
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
19
19
 */
20
20
 
21
21
/* This file was automatically generated --- DO NOT EDIT */
22
 
/* Generated on Sat Jul  5 22:11:54 EDT 2003 */
 
22
/* Generated on Tue Mar  7 11:54:42 EST 2006 */
23
23
 
24
24
#include "codelet-rdft.h"
25
25
 
26
 
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft/gen_hc2r -compact -variables 4 -sign 1 -n 4 -name hc2rIII_4 -dft-III -include hc2rIII.h */
27
 
 
28
 
/*
29
 
 * This function contains 6 FP additions, 4 FP multiplications,
30
 
 * (or, 6 additions, 4 multiplications, 0 fused multiply/add),
31
 
 * 9 stack variables, and 8 memory accesses
32
 
 */
33
 
/*
34
 
 * Generator Id's : 
35
 
 * $Id: algsimp.ml,v 1.7 2003/03/15 20:29:42 stevenj Exp $
36
 
 * $Id: fft.ml,v 1.2 2003/03/15 20:29:42 stevenj Exp $
37
 
 * $Id: gen_hc2r.ml,v 1.14 2003/04/17 19:25:50 athena Exp $
38
 
 */
39
 
 
40
 
#include "hc2rIII.h"
41
 
 
42
 
static void hc2rIII_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, int v, int ivs, int ovs)
43
 
{
44
 
     DK(KP1_414213562, +1.414213562373095048801688724209698078569671875);
45
 
     DK(KP2_000000000, +2.000000000000000000000000000000000000000000000);
46
 
     int i;
47
 
     for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, O = O + ovs) {
 
26
#ifdef HAVE_FMA
 
27
 
 
28
/* Generated by: ../../../genfft/gen_hc2r -fma -reorder-insns -schedule-for-pipeline -compact -variables 4 -pipeline-latency 4 -sign 1 -n 4 -name hc2rIII_4 -dft-III -include hc2rIII.h */
 
29
 
 
30
/*
 
31
 * This function contains 6 FP additions, 4 FP multiplications,
 
32
 * (or, 6 additions, 4 multiplications, 0 fused multiply/add),
 
33
 * 9 stack variables, and 8 memory accesses
 
34
 */
 
35
/*
 
36
 * Generator Id's : 
 
37
 * $Id: algsimp.ml,v 1.9 2006-02-12 23:34:12 athena Exp $
 
38
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
39
 * $Id: gen_hc2r.ml,v 1.19 2006-02-12 23:34:12 athena Exp $
 
40
 */
 
41
 
 
42
#include "hc2rIII.h"
 
43
 
 
44
static void hc2rIII_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, INT v, INT ivs, INT ovs)
 
45
{
 
46
     DK(KP1_414213562, +1.414213562373095048801688724209698078569671875);
 
47
     DK(KP2_000000000, +2.000000000000000000000000000000000000000000000);
 
48
     INT i;
 
49
     for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, O = O + ovs, MAKE_VOLATILE_STRIDE(ris), MAKE_VOLATILE_STRIDE(iis), MAKE_VOLATILE_STRIDE(os)) {
 
50
          E T1, T2, T4, T5, T3, T6;
 
51
          T1 = ri[0];
 
52
          T2 = ri[WS(ris, 1)];
 
53
          T4 = ii[0];
 
54
          T5 = ii[WS(iis, 1)];
 
55
          O[0] = KP2_000000000 * (T1 + T2);
 
56
          T3 = T1 - T2;
 
57
          O[WS(os, 2)] = KP2_000000000 * (T5 - T4);
 
58
          T6 = T4 + T5;
 
59
          O[WS(os, 3)] = -(KP1_414213562 * (T3 + T6));
 
60
          O[WS(os, 1)] = KP1_414213562 * (T3 - T6);
 
61
     }
 
62
}
 
63
 
 
64
static const khc2r_desc desc = { 4, "hc2rIII_4", {6, 4, 0, 0}, &GENUS, 0, 0, 0, 0, 0 };
 
65
 
 
66
void X(codelet_hc2rIII_4) (planner *p) {
 
67
     X(khc2rIII_register) (p, hc2rIII_4, &desc);
 
68
}
 
69
 
 
70
#else                           /* HAVE_FMA */
 
71
 
 
72
/* Generated by: ../../../genfft/gen_hc2r -compact -variables 4 -pipeline-latency 4 -sign 1 -n 4 -name hc2rIII_4 -dft-III -include hc2rIII.h */
 
73
 
 
74
/*
 
75
 * This function contains 6 FP additions, 4 FP multiplications,
 
76
 * (or, 6 additions, 4 multiplications, 0 fused multiply/add),
 
77
 * 9 stack variables, and 8 memory accesses
 
78
 */
 
79
/*
 
80
 * Generator Id's : 
 
81
 * $Id: algsimp.ml,v 1.9 2006-02-12 23:34:12 athena Exp $
 
82
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
83
 * $Id: gen_hc2r.ml,v 1.19 2006-02-12 23:34:12 athena Exp $
 
84
 */
 
85
 
 
86
#include "hc2rIII.h"
 
87
 
 
88
static void hc2rIII_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, INT v, INT ivs, INT ovs)
 
89
{
 
90
     DK(KP1_414213562, +1.414213562373095048801688724209698078569671875);
 
91
     DK(KP2_000000000, +2.000000000000000000000000000000000000000000000);
 
92
     INT i;
 
93
     for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, O = O + ovs, MAKE_VOLATILE_STRIDE(ris), MAKE_VOLATILE_STRIDE(iis), MAKE_VOLATILE_STRIDE(os)) {
48
94
          E T1, T2, T3, T4, T5, T6;
49
95
          T1 = ri[0];
50
96
          T2 = ri[WS(ris, 1)];
64
110
void X(codelet_hc2rIII_4) (planner *p) {
65
111
     X(khc2rIII_register) (p, hc2rIII_4, &desc);
66
112
}
 
113
 
 
114
#endif                          /* HAVE_FMA */