aboutsummaryrefslogtreecommitdiff
path: root/math/test/ulp.c
diff options
context:
space:
mode:
authorPierre Blanchard <pierre.blanchard@arm.com>2020-11-05 16:26:36 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-11-13 14:43:49 +0000
commit00e5afdbaf600cb8d56072685e987800d8678248 (patch)
tree312326613eb7e581fdf0e17766d48cf01d40da65 /math/test/ulp.c
parentfc3fcc91ba7d79b30876d8e7ee68b8442a50da5c (diff)
downloadarm-optimized-routines-00e5afdbaf600cb8d56072685e987800d8678248.tar.gz
math: add scalar erf
Only tested in round-to-nearest mode. The expected worst case error is 1.01 ULP near x=1.25. Benchmarked over random x in [-6,6] and can increase performance by > 2x (> 3.5x for throughput) on big ooo cores compared to the implementation in glibc 2.28. Includes data for erfc too, but this patch only adds erf.
Diffstat (limited to 'math/test/ulp.c')
-rw-r--r--math/test/ulp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/math/test/ulp.c b/math/test/ulp.c
index 3701c93..05a5321 100644
--- a/math/test/ulp.c
+++ b/math/test/ulp.c
@@ -337,6 +337,7 @@ static const struct fun fun[] = {
D1 (log)
D1 (log2)
D2 (pow)
+ D1 (erf)
#if WANT_VMATH
F (__s_sinf, __s_sinf, sin, mpfr_sin, 1, 1, f1, 0)
F (__s_cosf, __s_cosf, cos, mpfr_cos, 1, 1, f1, 0)