summaryrefslogtreecommitdiff
path: root/liboil/simdpack
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-09-04 00:47:50 +0000
committerDavid Schleef <ds@schleef.org>2004-09-04 00:47:50 +0000
commitb44a3761b83ec61ab6b25f8e400ce71c0415f288 (patch)
tree946988808365753b5307b01fb3039cf311d070b0 /liboil/simdpack
parent8e3494a8806d9a6c67a09ba9b918345e046262a9 (diff)
downloadliboil-b44a3761b83ec61ab6b25f8e400ce71c0415f288.tar.gz
* liboil/Makefile.am: add liboilprototype.c
* liboil/build_prototypes.c: use liboilprototype.h * liboil/conv_c.c: include conv.h * liboil/conv_misc.c: include conv.h * liboil/conv_sse.c: include conv.h * liboil/liboilfuncs.h: use pointers to classes instead of directly * liboil/liboilfunction.h: Add class pointer definition * liboil/liboilprototype.c: (oil_prototype_append_param), (oil_prototype_to_string), (oil_prototype_from_string), (parse_string), (oil_prototype_free), (oil_string_new), (oil_string_append), (oil_string_free): Add some prototype manipulation functions. * liboil/liboilprototype.h: ditto * liboil/simdpack/abs.c: (abs_f32_f32_ref), (abs_f64_f64_ref): Fix bug. * testsuite/abs.c: (test), (main): works now
Diffstat (limited to 'liboil/simdpack')
-rw-r--r--liboil/simdpack/abs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liboil/simdpack/abs.c b/liboil/simdpack/abs.c
index a0772f1..8ac0238 100644
--- a/liboil/simdpack/abs.c
+++ b/liboil/simdpack/abs.c
@@ -92,7 +92,7 @@ abs_f32_f32_ref (float *dest, int dstr, float *src, int sstr, int n)
int i;
for (i=0; i<n; i++) {
- OIL_GET(dest, i*dstr, float) = fabs(OIL_GET(dest, i*dstr, float));
+ OIL_GET(dest, i*dstr, float) = fabs(OIL_GET(src, i*sstr, float));
}
}
@@ -104,7 +104,7 @@ abs_f64_f64_ref (double *dest, int dstr, double *src, int sstr, int n)
int i;
for (i=0; i<n; i++) {
- OIL_GET(dest, i*dstr, double) = fabs(OIL_GET(dest, i*dstr, double));
+ OIL_GET(dest, i*dstr, double) = fabs(OIL_GET(src, i*sstr, double));
}
}