aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorSunil K Pandey <skpgkp2@gmail.com>2025-03-05 16:13:38 -0800
committerSunil K Pandey <skpgkp2@gmail.com>2025-03-13 14:30:47 -0700
commitc7c4a5906f326f1290b1c2413a83c530564ec4b8 (patch)
tree198a3d71c40ba5eb3e9f4de3d2cd1f3b461664c8 /sysdeps/ieee754
parent9b646f5dc933dfa019f2ed7f80b6198b43e31f62 (diff)
downloadglibc-c7c4a5906f326f1290b1c2413a83c530564ec4b8.zip
glibc-c7c4a5906f326f1290b1c2413a83c530564ec4b8.tar.gz
glibc-c7c4a5906f326f1290b1c2413a83c530564ec4b8.tar.bz2
x86_64: Add atanh with FMAHEADmaster
On SPR, it improves atanh bench performance by: Before After Improvement reciprocal-throughput 15.1715 14.8628 2% latency 57.1941 56.1883 2% Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/dbl-64/e_atanh.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_atanh.c b/sysdeps/ieee754/dbl-64/e_atanh.c
index 1e09e46..d1c71b2 100644
--- a/sysdeps/ieee754/dbl-64/e_atanh.c
+++ b/sysdeps/ieee754/dbl-64/e_atanh.c
@@ -44,6 +44,11 @@
static const double huge = 1e300;
+#ifndef SECTION
+# define SECTION
+#endif
+
+SECTION
double
__ieee754_atanh (double x)
{
@@ -73,4 +78,7 @@ __ieee754_atanh (double x)
return copysign (t, x);
}
+
+#ifndef __ieee754_atanh
libm_alias_finite (__ieee754_atanh, __atanh)
+#endif