summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-09-15 07:05:10 +0000
committerDavid Schleef <ds@schleef.org>2005-09-15 07:05:10 +0000
commitc569cd2fbf70a7017fe2f44140edbf5f8001e64f (patch)
treeab7162be35983dcd67201d3e5d9de2ba2b25ccee /examples
parent2c9c450abd2ec054779f573b795c501e4af7c9fd (diff)
downloadliboil-c569cd2fbf70a7017fe2f44140edbf5f8001e64f.tar.gz
* examples/oil-test.c: Add 64-bit types
* liboil/liboilparameter.h: same * liboil/liboilprototype.c: same * liboil/liboilrandom.h: same * liboil/liboiltest.c: same * liboil/Makefile.am: fix windows build * liboil/simdpack/sincos_f64.c: minor change
Diffstat (limited to 'examples')
-rw-r--r--examples/oil-test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/oil-test.c b/examples/oil-test.c
index 7fa6192..0ce60e8 100644
--- a/examples/oil-test.c
+++ b/examples/oil-test.c
@@ -76,7 +76,7 @@ dump_array (void *data, void *ref_data, OilType type, int pre_n, int stride,
for(j=0;j<pre_n;j++){ \
x = fabs(OIL_GET(data, i*stride + j*s2, type) - \
OIL_GET(ref_data, i*stride + j*s2, type)); \
- if (x >= 1.0) { \
+ if (x >= 0.00001) { \
printf("*" format "* ", OIL_GET(data, i*stride + j*s2, type)); \
} else { \
printf(format " ", OIL_GET(data, i*stride + j*s2, type)); \
@@ -106,6 +106,12 @@ dump_array (void *data, void *ref_data, OilType type, int pre_n, int stride,
DUMP(uint32_t, "%u");
//DUMP(uint32_t, "%08x");
break;
+ case OIL_TYPE_s64p:
+ DUMP(int64_t, "%lld");
+ break;
+ case OIL_TYPE_u64p:
+ DUMP(uint64_t, "%llu");
+ break;
case OIL_TYPE_f32p:
DUMP(float, "%g");
break;