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

« back to all changes in this revision

Viewing changes to rdft/codelets/hc2r/hc2r_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:11 EDT 2003 */
 
22
/* Generated on Tue Mar  7 11:32:00 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 hc2r_4 -include hc2r.h */
 
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 hc2r_4 -include hc2r.h */
 
29
 
 
30
/*
 
31
 * This function contains 6 FP additions, 4 FP multiplications,
 
32
 * (or, 2 additions, 0 multiplications, 4 fused multiply/add),
 
33
 * 8 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 "hc2r.h"
 
43
 
 
44
static void hc2r_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, INT v, INT ivs, INT ovs)
 
45
{
 
46
     DK(KP2_000000000, +2.000000000000000000000000000000000000000000000);
 
47
     INT i;
 
48
     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)) {
 
49
          E T4, T6, T1, T2, T3, T5;
 
50
          T4 = ri[WS(ris, 1)];
 
51
          T6 = ii[WS(iis, 1)];
 
52
          T1 = ri[0];
 
53
          T2 = ri[WS(ris, 2)];
 
54
          T3 = T1 + T2;
 
55
          T5 = T1 - T2;
 
56
          O[WS(os, 1)] = FNMS(KP2_000000000, T6, T5);
 
57
          O[WS(os, 3)] = FMA(KP2_000000000, T6, T5);
 
58
          O[0] = FMA(KP2_000000000, T4, T3);
 
59
          O[WS(os, 2)] = FNMS(KP2_000000000, T4, T3);
 
60
     }
 
61
}
 
62
 
 
63
static const khc2r_desc desc = { 4, "hc2r_4", {2, 0, 4, 0}, &GENUS, 0, 0, 0, 0, 0 };
 
64
 
 
65
void X(codelet_hc2r_4) (planner *p) {
 
66
     X(khc2r_register) (p, hc2r_4, &desc);
 
67
}
 
68
 
 
69
#else                           /* HAVE_FMA */
 
70
 
 
71
/* Generated by: ../../../genfft/gen_hc2r -compact -variables 4 -pipeline-latency 4 -sign 1 -n 4 -name hc2r_4 -include hc2r.h */
27
72
 
28
73
/*
29
74
 * This function contains 6 FP additions, 2 FP multiplications,
32
77
 */
33
78
/*
34
79
 * 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 $
 
80
 * $Id: algsimp.ml,v 1.9 2006-02-12 23:34:12 athena Exp $
 
81
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
82
 * $Id: gen_hc2r.ml,v 1.19 2006-02-12 23:34:12 athena Exp $
38
83
 */
39
84
 
40
85
#include "hc2r.h"
41
86
 
42
 
static void hc2r_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, int v, int ivs, int ovs)
 
87
static void hc2r_4(const R *ri, const R *ii, R *O, stride ris, stride iis, stride os, INT v, INT ivs, INT ovs)
43
88
{
44
89
     DK(KP2_000000000, +2.000000000000000000000000000000000000000000000);
45
 
     int i;
46
 
     for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, O = O + ovs) {
 
90
     INT i;
 
91
     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)) {
47
92
          E T5, T8, T3, T6;
48
93
          {
49
94
               E T4, T7, T1, T2;
68
113
void X(codelet_hc2r_4) (planner *p) {
69
114
     X(khc2r_register) (p, hc2r_4, &desc);
70
115
}
 
116
 
 
117
#endif                          /* HAVE_FMA */