From 0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 4 Dec 2024 10:20:44 +0000 Subject: Implement C23 cospi C23 adds various function families originally defined in TS 18661-4. Add the cospi functions (cos(pi*x)). Tested for x86_64 and x86, and with build-many-glibcs.py. --- math/bits/mathcalls.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'math/bits/mathcalls.h') diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index 92856becc4..e25a1513a6 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -65,6 +65,11 @@ __MATHCALL_VEC (sin,, (_Mdouble_ __x)); /* Tangent of X. */ __MATHCALL_VEC (tan,, (_Mdouble_ __x)); +#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C23) +/* Cosine of pi * X. */ +__MATHCALL (cospi,, (_Mdouble_ __x)); +#endif + /* Hyperbolic functions. */ /* Hyperbolic cosine of X. */ -- cgit v1.2.3