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

« back to all changes in this revision

Viewing changes to dft/simd/codelets/n1fv_2.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 21:40:06 EDT 2003 */
 
22
/* Generated on Tue Mar  7 09:46:58 EST 2006 */
23
23
 
24
24
#include "codelet-dft.h"
25
25
 
26
 
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft/gen_notw_c -simd -compact -variables 4 -n 2 -name n1fv_2 -include n1f.h */
27
 
 
28
 
/*
29
 
 * This function contains 2 FP additions, 0 FP multiplications,
30
 
 * (or, 2 additions, 0 multiplications, 0 fused multiply/add),
31
 
 * 5 stack variables, and 4 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_notw_c.ml,v 1.9 2003/04/16 21:21:53 athena Exp $
38
 
 */
39
 
 
40
 
#include "n1f.h"
41
 
 
42
 
static void n1fv_2(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, int v, int ivs, int ovs)
43
 
{
44
 
     int i;
45
 
     const R *xi;
46
 
     R *xo;
47
 
     xi = ri;
48
 
     xo = ro;
49
 
     BEGIN_SIMD();
50
 
     for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs)) {
51
 
          V T1, T2;
52
 
          T1 = LD(&(xi[0]), ivs, &(xi[0]));
53
 
          T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)]));
54
 
          ST(&(xo[WS(os, 1)]), VSUB(T1, T2), ovs, &(xo[WS(os, 1)]));
55
 
          ST(&(xo[0]), VADD(T1, T2), ovs, &(xo[0]));
56
 
     }
57
 
     END_SIMD();
58
 
}
59
 
 
60
 
static const kdft_desc desc = { 2, "n1fv_2", {2, 0, 0, 0}, &GENUS, 0, 0, 0, 0 };
61
 
void X(codelet_n1fv_2) (planner *p) {
62
 
     X(kdft_register) (p, n1fv_2, &desc);
63
 
}
 
26
#ifdef HAVE_FMA
 
27
 
 
28
/* Generated by: ../../../genfft/gen_notw_c -fma -reorder-insns -schedule-for-pipeline -simd -compact -variables 4 -pipeline-latency 8 -n 2 -name n1fv_2 -include n1f.h */
 
29
 
 
30
/*
 
31
 * This function contains 2 FP additions, 0 FP multiplications,
 
32
 * (or, 2 additions, 0 multiplications, 0 fused multiply/add),
 
33
 * 5 stack variables, and 4 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_notw_c.ml,v 1.17 2006-02-12 23:34:12 athena Exp $
 
40
 */
 
41
 
 
42
#include "n1f.h"
 
43
 
 
44
static void n1fv_2(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
 
45
{
 
46
     INT i;
 
47
     const R *xi;
 
48
     R *xo;
 
49
     xi = ri;
 
50
     xo = ro;
 
51
     for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs), MAKE_VOLATILE_STRIDE(is), MAKE_VOLATILE_STRIDE(os)) {
 
52
          V T1, T2;
 
53
          T1 = LD(&(xi[0]), ivs, &(xi[0]));
 
54
          T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)]));
 
55
          ST(&(xo[0]), VADD(T1, T2), ovs, &(xo[0]));
 
56
          ST(&(xo[WS(os, 1)]), VSUB(T1, T2), ovs, &(xo[WS(os, 1)]));
 
57
     }
 
58
}
 
59
 
 
60
static const kdft_desc desc = { 2, "n1fv_2", {2, 0, 0, 0}, &GENUS, 0, 0, 0, 0 };
 
61
void X(codelet_n1fv_2) (planner *p) {
 
62
     X(kdft_register) (p, n1fv_2, &desc);
 
63
}
 
64
 
 
65
#else                           /* HAVE_FMA */
 
66
 
 
67
/* Generated by: ../../../genfft/gen_notw_c -simd -compact -variables 4 -pipeline-latency 8 -n 2 -name n1fv_2 -include n1f.h */
 
68
 
 
69
/*
 
70
 * This function contains 2 FP additions, 0 FP multiplications,
 
71
 * (or, 2 additions, 0 multiplications, 0 fused multiply/add),
 
72
 * 5 stack variables, and 4 memory accesses
 
73
 */
 
74
/*
 
75
 * Generator Id's : 
 
76
 * $Id: algsimp.ml,v 1.9 2006-02-12 23:34:12 athena Exp $
 
77
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
78
 * $Id: gen_notw_c.ml,v 1.17 2006-02-12 23:34:12 athena Exp $
 
79
 */
 
80
 
 
81
#include "n1f.h"
 
82
 
 
83
static void n1fv_2(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
 
84
{
 
85
     INT i;
 
86
     const R *xi;
 
87
     R *xo;
 
88
     xi = ri;
 
89
     xo = ro;
 
90
     for (i = v; i > 0; i = i - VL, xi = xi + (VL * ivs), xo = xo + (VL * ovs), MAKE_VOLATILE_STRIDE(is), MAKE_VOLATILE_STRIDE(os)) {
 
91
          V T1, T2;
 
92
          T1 = LD(&(xi[0]), ivs, &(xi[0]));
 
93
          T2 = LD(&(xi[WS(is, 1)]), ivs, &(xi[WS(is, 1)]));
 
94
          ST(&(xo[WS(os, 1)]), VSUB(T1, T2), ovs, &(xo[WS(os, 1)]));
 
95
          ST(&(xo[0]), VADD(T1, T2), ovs, &(xo[0]));
 
96
     }
 
97
}
 
98
 
 
99
static const kdft_desc desc = { 2, "n1fv_2", {2, 0, 0, 0}, &GENUS, 0, 0, 0, 0 };
 
100
void X(codelet_n1fv_2) (planner *p) {
 
101
     X(kdft_register) (p, n1fv_2, &desc);
 
102
}
 
103
 
 
104
#endif                          /* HAVE_FMA */