aboutsummaryrefslogtreecommitdiff
path: root/math/tgmath.h
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-11 21:51:49 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-11 21:51:49 +0000
commitffe79c446ced76d7c1a77804ff2cc32eccbc7c7e (patch)
treefa436fea1f0eebeb843ae0c16df84f120f859eb3 /math/tgmath.h
parentaec85b2557cdb2cc1fc726a50c33848826f00f4d (diff)
downloadglibc-ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e.tar.xz
glibc-ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e.zip
Implement C23 atanpi
C23 adds various <math.h> function families originally defined in TS 18661-4. Add the atanpi functions (atan(x)/pi). Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'math/tgmath.h')
-rw-r--r--math/tgmath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/tgmath.h b/math/tgmath.h
index 4e23d49412..9260d0779c 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -822,6 +822,8 @@
# define acospi(Val) __TGMATH_UNARY_REAL_ONLY (Val, acospi)
/* Arc sine of X, divided by pi.. */
# define asinpi(Val) __TGMATH_UNARY_REAL_ONLY (Val, asinpi)
+/* Arc tangent of X, divided by pi. */
+# define atanpi(Val) __TGMATH_UNARY_REAL_ONLY (Val, atanpi)
/* Cosine of pi * X. */
# define cospi(Val) __TGMATH_UNARY_REAL_ONLY (Val, cospi)