summaryrefslogtreecommitdiffstats
path: root/pocl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-03-23 15:56:08 -0400
committerErik Schnetter <schnetter@gmail.com>2013-03-23 15:56:08 -0400
commit4ff2c87545d5b5313734b95258fa75ee8fe107ec (patch)
tree7afb1b018ad8b813b5fb917dcccba66c95e011be /pocl
parentc5c9602ad2ea1ca1d02814c3592a182a7b100ce6 (diff)
downloadvecmathlib-4ff2c87545d5b5313734b95258fa75ee8fe107ec.zip
vecmathlib-4ff2c87545d5b5313734b95258fa75ee8fe107ec.tar.gz
Implement rint() correctly
Implement rint() by calling vecmathlib, not by calling round().
Diffstat (limited to 'pocl')
-rwxr-xr-xpocl/generate-files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pocl/generate-files.py b/pocl/generate-files.py
index 6d79dea..5c86879 100755
--- a/pocl/generate-files.py
+++ b/pocl/generate-files.py
@@ -59,6 +59,7 @@ vmlfuncs = [
("log1p" , [VF ], VF, [VF ], VF),
("pow" , [VF, VF ], VF, [VF, VF ], VF),
("remainder", [VF, VF ], VF, [VF, VF ], VF),
+ ("rint" , [VF ], VF, [VF ], VF),
("round" , [VF ], VF, [VF ], VF),
("rsqrt" , [VF ], VF, [VF ], VF),
("sin" , [VF ], VF, [VF ], VF),
@@ -100,7 +101,6 @@ directfuncs = [
("pown" , [VF, VK ], VF, "pow(x0,convert_vector_t(x1))"),
("powr" , [VF, VF ], VF, "pow(x0,x1)"),
("remquo" , [VF, VF, PVK], VF, "({ vector_t k=rint(x0/x1); *x2=(convert_kvector_t(k)&0x7f)*(1-2*convert_kvector_t(signbit(k))); x0-k*x1; })"),
- ("rint" , [VF ], VF, "round(x0)"),
("rootn" , [VF, VK ], VF, "pow(x0,(scalar_t)1.0/convert_vector_t(x1))"),
("sincos" , [VF, PVF ], VF, "*x1=cos(x0), sin(x0)"),
("sinpi" , [VF ], VF, "sin((scalar_t)M_PI*x0)"),
OpenPOWER on IntegriCloud