aboutsummaryrefslogtreecommitdiff
path: root/math/bits
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-09 23:01:29 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-09 23:01:29 +0000
commit28d102d15c6af7f80cb1077e098e020476d26d00 (patch)
treeea46b5497d8ed73dab0ada5d3297e85410b5b097 /math/bits
parentbe13e467641cda4bd147ef3ef3afe9e4c6a35e1d (diff)
downloadglibc-28d102d15c6af7f80cb1077e098e020476d26d00.tar.xz
glibc-28d102d15c6af7f80cb1077e098e020476d26d00.zip
Implement C23 acospi
C23 adds various <math.h> function families originally defined in TS 18661-4. Add the acospi functions (acos(x)/pi). Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'math/bits')
-rw-r--r--math/bits/mathcalls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h
index d3520744ba..f3e609e9f4 100644
--- a/math/bits/mathcalls.h
+++ b/math/bits/mathcalls.h
@@ -66,6 +66,9 @@ __MATHCALL_VEC (sin,, (_Mdouble_ __x));
__MATHCALL_VEC (tan,, (_Mdouble_ __x));
#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C23)
+/* Arc cosine of X, divided by pi. */
+__MATHCALL (acospi,, (_Mdouble_ __x));
+
/* Cosine of pi * X. */
__MATHCALL (cospi,, (_Mdouble_ __x));
/* Sine of pi * X. */