From ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 11 Dec 2024 21:51:49 +0000 Subject: Implement C23 atanpi C23 adds various 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. --- math/tgmath.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'math/tgmath.h') 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) -- cgit v1.2.3