diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-12-04 20:04:04 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-12-04 20:04:04 +0000 |
commit | 776938e8b8dcf2b59998979e91cc0f9db7d771a8 (patch) | |
tree | 65d6e7bf7f140a54d4d0b0848b1ba247691d662b /manual | |
parent | 0ae0af68d8fa3bf6cbe1e4f1de5929ff71de67b3 (diff) | |
download | glibc-776938e8b8dcf2b59998979e91cc0f9db7d771a8.zip glibc-776938e8b8dcf2b59998979e91cc0f9db7d771a8.tar.gz glibc-776938e8b8dcf2b59998979e91cc0f9db7d771a8.tar.bz2 |
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 'manual')
-rw-r--r-- | manual/math.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manual/math.texi b/manual/math.texi index b818db2..7f03031 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -240,6 +240,19 @@ All these functions, including the @code{_Float@var{N}} and should be prepared to cope with their absence. @end deftypefun +@deftypefun double sinpi (double @var{x}) +@deftypefunx float sinpif (float @var{x}) +@deftypefunx {long double} sinpil (long double @var{x}) +@deftypefunx _FloatN sinpifN (_Float@var{N} @var{x}) +@deftypefunx _FloatNx sinpifNx (_Float@var{N}x @var{x}) +@standards{TS 18661-4:2015, math.h} +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} +These functions return the sine of pi multiplied by @var{x}. The +return value is in the range @code{-1} to @code{1}. + +The @code{sinpi} functions are from TS 18661-4:2015. +@end deftypefun + @deftypefun double cospi (double @var{x}) @deftypefunx float cospif (float @var{x}) @deftypefunx {long double} cospil (long double @var{x}) |