Skip to content

Commit 15a1d62

Browse files
committed
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.
1 parent 00e5afd commit 15a1d62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

math/test/runulp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ t pow 0x1.ffffffffff000p-1 0x1p0 x 0x1p50 0x1p52 50000
7373
t pow -0x1.ffffffffff000p-1 -0x1p0 x 0x1p50 0x1p52 50000
7474

7575
L=1.0
76+
Ldir=0.9
7677
t erf 0 0xffff000000000000 10000
7778
t erf 0x1p-1022 0x1p-26 40000
7879
t erf -0x1p-1022 -0x1p-26 40000
7980
t erf 0x1p-26 0x1p3 40000
8081
t erf -0x1p-26 -0x1p3 40000
8182
t erf 0 inf 40000
83+
Ldir=0.5
8284

8385
L=0.01
8486
t expf 0 0xffff0000 10000

0 commit comments

Comments
 (0)