aboutsummaryrefslogtreecommitdiff
path: root/math/bits
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-04 20:04:04 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-04 20:04:04 +0000
commit776938e8b8dcf2b59998979e91cc0f9db7d771a8 (patch)
tree65d6e7bf7f140a54d4d0b0848b1ba247691d662b /math/bits
parent0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3 (diff)
downloadglibc-776938e8b8dcf2b59998979e91cc0f9db7d771a8.tar.xz
glibc-776938e8b8dcf2b59998979e91cc0f9db7d771a8.zip
Implement C23 sinpi
C23 adds various <math.h> function families originally defined in TS 18661-4. Add the sinpi functions (sin(pi*x)). Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'math/bits')
-rw-r--r--math/bits/mathcalls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h
index e25a1513a6..de233ebb38 100644
--- a/math/bits/mathcalls.h
+++ b/math/bits/mathcalls.h
@@ -68,6 +68,8 @@ __MATHCALL_VEC (tan,, (_Mdouble_ __x));
#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C23)
/* Cosine of pi * X. */
__MATHCALL (cospi,, (_Mdouble_ __x));
+/* Sine of pi * X. */
+__MATHCALL (sinpi,, (_Mdouble_ __x));
#endif
/* Hyperbolic functions. */