aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-11-13 15:39:54 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-11-13 15:39:54 +0000
commit15a1d62bf0d6e6069a917b633b5013e36f08e017 (patch)
treeecf7345c197ed009bce6e2b40a227c2ab7d7b67d /math
parent00e5afdbaf600cb8d56072685e987800d8678248 (diff)
downloadarm-optimized-routines-15a1d62bf0d6e6069a917b633b5013e36f08e017.tar.gz
math: fix erf tests in directed rounding modes
erf has larger than 1 ULP errors in directed rounding modes, increase the error threshold to 1.4 ULP in the test script.
Diffstat (limited to 'math')
-rwxr-xr-xmath/test/runulp.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/test/runulp.sh b/math/test/runulp.sh
index 492a6f2..1d87a81 100755
--- a/math/test/runulp.sh
+++ b/math/test/runulp.sh
@@ -73,12 +73,14 @@ t pow 0x1.ffffffffff000p-1 0x1p0 x 0x1p50 0x1p52 50000
t pow -0x1.ffffffffff000p-1 -0x1p0 x 0x1p50 0x1p52 50000
L=1.0
+Ldir=0.9
t erf 0 0xffff000000000000 10000
t erf 0x1p-1022 0x1p-26 40000
t erf -0x1p-1022 -0x1p-26 40000
t erf 0x1p-26 0x1p3 40000
t erf -0x1p-26 -0x1p3 40000
t erf 0 inf 40000
+Ldir=0.5
L=0.01
t expf 0 0xffff0000 10000