diff options
| author | Joseph Myers <josmyers@redhat.com> | 2024-12-04 10:20:44 +0000 |
|---|---|---|
| committer | Joseph Myers <josmyers@redhat.com> | 2024-12-04 10:20:44 +0000 |
| commit | 0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3 (patch) | |
| tree | 532181355fdc15427d84f2927db7ee807d2618c4 /math/bits | |
| parent | 1c4cebb84b9e33aea9a90adfadb031d1f1eba927 (diff) | |
| download | glibc-0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3.tar.xz glibc-0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3.zip | |
Implement C23 cospi
C23 adds various <math.h> 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.
Diffstat (limited to 'math/bits')
| -rw-r--r-- | math/bits/mathcalls.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |
