diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-12-05 21:42:10 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-12-05 21:42:10 +0000 |
commit | f9e90e4b4ce71f88470c8c8b0a16c21088294be4 (patch) | |
tree | f1480a938f936a29630f67901a86b7e2c750eff1 /sysdeps/ieee754 | |
parent | 062257c5d929e3c9a83a26624a09e57936ac6b5e (diff) | |
download | glibc-f9e90e4b4ce71f88470c8c8b0a16c21088294be4.zip glibc-f9e90e4b4ce71f88470c8c8b0a16c21088294be4.tar.gz glibc-f9e90e4b4ce71f88470c8c8b0a16c21088294be4.tar.bz2 |
Implement C23 tanpi
C23 adds various <math.h> function families originally defined in TS
18661-4. Add the tanpi functions (tan(pi*x)).
Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm-compat/Versions | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/Makefile | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-tanpi.c | 8 |
3 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Versions b/sysdeps/ieee754/ldbl-128ibm-compat/Versions index 00dba38..336ce74 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Versions +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Versions @@ -147,6 +147,7 @@ libm { GLIBC_2.41 { __cospiieee128; __sinpiieee128; + __tanpiieee128; } } libc { diff --git a/sysdeps/ieee754/ldbl-opt/Makefile b/sysdeps/ieee754/ldbl-opt/Makefile index 3512cff..bd1a379 100644 --- a/sysdeps/ieee754/ldbl-opt/Makefile +++ b/sysdeps/ieee754/ldbl-opt/Makefile @@ -207,6 +207,7 @@ libnldbl-calls = \ syslog_chk \ tan \ tanh \ + tanpi \ tgamma \ totalorder \ totalordermag \ @@ -383,6 +384,7 @@ CFLAGS-nldbl-sinpi.c = -fno-builtin-sinpi CFLAGS-nldbl-sqrt.c = -fno-builtin-sqrtl CFLAGS-nldbl-tan.c = -fno-builtin-tanl CFLAGS-nldbl-tanh.c = -fno-builtin-tanhl +CFLAGS-nldbl-tanpi.c = -fno-builtin-tanpi CFLAGS-nldbl-tgamma.c = -fno-builtin-tgammal CFLAGS-nldbl-totalorder.c = -fno-builtin-totalorderl CFLAGS-nldbl-totalordermag.c = -fno-builtin-totalordermagl diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-tanpi.c b/sysdeps/ieee754/ldbl-opt/nldbl-tanpi.c new file mode 100644 index 0000000..2bd6133 --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/nldbl-tanpi.c @@ -0,0 +1,8 @@ +#include "nldbl-compat.h" + +double +attribute_hidden +tanpil (double x) +{ + return tanpi (x); +} |