diff options
author | David Schleef <ds@schleef.org> | 2005-12-16 07:45:29 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-12-16 07:45:29 +0000 |
commit | 91ca647a4aa22f6f68209f156ffeb361a4610c9b (patch) | |
tree | e6a28faec26684bf5d7a31ed7544dd75c5645327 /liboil/simdpack | |
parent | 823016f2206a31d1d3afcdbe32b89b2b3e0c2f5d (diff) | |
download | liboil-91ca647a4aa22f6f68209f156ffeb361a4610c9b.tar.gz |
* doc/liboil-sections.txt:
* doc/tmpl/liboil-unused.sgml:
* doc/tmpl/liboiltypes.sgml:
* liboil/conv/conv_c.c:
* liboil/liboilprototype.c:
* liboil/liboiltypes.h:
* liboil/ref/clip_ref.c:
* liboil/ref/conv.c:
* liboil/ref/multsum.c:
* liboil/ref/permute.c:
* liboil/ref/scalaradd.c:
* liboil/ref/scalarmult.c:
* liboil/ref/trans8x8.c:
* liboil/ref/vectoradd_f64.c:
* liboil/ref/vectoradd_s.c:
* liboil/simdpack/scalaradd.c:
* liboil/simdpack/scalarmult.c:
Diffstat (limited to 'liboil/simdpack')
-rw-r--r-- | liboil/simdpack/scalaradd.c | 26 | ||||
-rw-r--r-- | liboil/simdpack/scalarmult.c | 44 |
2 files changed, 35 insertions, 35 deletions
diff --git a/liboil/simdpack/scalaradd.c b/liboil/simdpack/scalaradd.c index 2aca691..f13a3ee 100644 --- a/liboil/simdpack/scalaradd.c +++ b/liboil/simdpack/scalaradd.c @@ -34,9 +34,9 @@ #define SCALARADD_DEFINE_UNROLL2(type) \ static void scalaradd_ ## type ## _unroll2( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ if(n&1) { \ *dest = *src + *val; \ @@ -67,12 +67,12 @@ SCALARADD_DEFINE_UNROLL2 (f64); #define SCALARADD_DEFINE_UNROLL2x(type) \ static void scalaradd_ ## type ## _unroll2x( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ - type_ ## type *dest2; \ - type_ ## type *src2; \ + oil_type_ ## type *dest2; \ + oil_type_ ## type *src2; \ int i; \ if(n&1) { \ *dest = *src + *val; \ @@ -85,8 +85,8 @@ static void scalaradd_ ## type ## _unroll2x( \ sstr *= 2; \ dstr *= 2; \ for(i=0;i<n;i++){ \ - OIL_GET(dest,dstr*i, type_ ## type) = OIL_GET(src,sstr*i, type_ ## type) + *val; \ - OIL_GET(dest2,dstr*i, type_ ## type) = OIL_GET(src2,sstr*i, type_ ## type) + *val; \ + OIL_GET(dest,dstr*i, oil_type_ ## type) = OIL_GET(src,sstr*i, oil_type_ ## type) + *val; \ + OIL_GET(dest2,dstr*i, oil_type_ ## type) = OIL_GET(src2,sstr*i, oil_type_ ## type) + *val; \ } \ } \ OIL_DEFINE_IMPL (scalaradd_ ## type ## _unroll2x, scalaradd_ ## type); @@ -102,9 +102,9 @@ SCALARADD_DEFINE_UNROLL2x (f64); #define SCALARADD_DEFINE_UNROLL4(type) \ static void scalaradd_ ## type ## _unroll4( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ if(n&1) { \ *dest = *src + *val; \ diff --git a/liboil/simdpack/scalarmult.c b/liboil/simdpack/scalarmult.c index 255b2ee..76b352e 100644 --- a/liboil/simdpack/scalarmult.c +++ b/liboil/simdpack/scalarmult.c @@ -34,9 +34,9 @@ #define SCALARMULT_DEFINE_UNROLL2(type) \ static void scalarmult_ ## type ## _unroll2( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ if(n&1) { \ *dest = *src * *val; \ @@ -67,12 +67,12 @@ SCALARMULT_DEFINE_UNROLL2 (f64); #define SCALARMULT_DEFINE_UNROLL2x(type) \ static void scalarmult_ ## type ## _unroll2x( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ - type_ ## type *dest2; \ - type_ ## type *src2; \ + oil_type_ ## type *dest2; \ + oil_type_ ## type *src2; \ int i; \ if(n&1) { \ *dest = *src * *val; \ @@ -85,8 +85,8 @@ static void scalarmult_ ## type ## _unroll2x( \ sstr *= 2; \ dstr *= 2; \ for(i=0;i<n;i++){ \ - OIL_GET(dest,dstr*i,type_ ## type) = OIL_GET(src,sstr*i,type_ ## type) * *val; \ - OIL_GET(dest2,dstr*i,type_ ## type) = OIL_GET(src2,sstr*i,type_ ## type) * *val; \ + OIL_GET(dest,dstr*i,oil_type_ ## type) = OIL_GET(src,sstr*i,oil_type_ ## type) * *val; \ + OIL_GET(dest2,dstr*i,oil_type_ ## type) = OIL_GET(src2,sstr*i,oil_type_ ## type) * *val; \ } \ } \ OIL_DEFINE_IMPL (scalarmult_ ## type ## _unroll2x, scalarmult_ ## type); @@ -102,9 +102,9 @@ SCALARMULT_DEFINE_UNROLL2x (f64); #define SCALARMULT_DEFINE_UNROLL4(type) \ static void scalarmult_ ## type ## _unroll4( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ if(n&1) { \ *dest = *src * *val; \ @@ -153,20 +153,20 @@ SCALARMULT_DEFINE_UNROLL4 (f64); #define SCALARMULT_DEFINE_X(type) \ static void scalarmult_ ## type ## _x( \ - type_ ## type *dest, int dstr, \ - type_ ## type *src, int sstr, \ - type_ ## type *val, int n) \ + oil_type_ ## type *dest, int dstr, \ + oil_type_ ## type *src, int sstr, \ + oil_type_ ## type *val, int n) \ { \ int i; \ for(i=0;i+1<n;i+=2){ \ - OIL_GET(dest, i*dstr,type_ ## type) = \ - OIL_GET(src, i*sstr,type_ ## type) * *val; \ - OIL_GET(dest,(i+1)*dstr,type_ ## type) = \ - OIL_GET(src,(i+1)*sstr,type_ ## type) * *val; \ + OIL_GET(dest, i*dstr,oil_type_ ## type) = \ + OIL_GET(src, i*sstr,oil_type_ ## type) * *val; \ + OIL_GET(dest,(i+1)*dstr,oil_type_ ## type) = \ + OIL_GET(src,(i+1)*sstr,oil_type_ ## type) * *val; \ } \ if (n&1) { \ - OIL_GET(dest,i*dstr,type_ ## type) = \ - OIL_GET(src,i*sstr,type_ ## type) * *val; \ + OIL_GET(dest,i*dstr,oil_type_ ## type) = \ + OIL_GET(src,i*sstr,oil_type_ ## type) * *val; \ } \ } \ OIL_DEFINE_IMPL (scalarmult_ ## type ## _x, scalarmult_ ## type); |