diff options
Diffstat (limited to 'math/tgmath.h')
-rw-r--r-- | math/tgmath.h | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/math/tgmath.h b/math/tgmath.h index f48f718..0d830a7 100644 --- a/math/tgmath.h +++ b/math/tgmath.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997-2024 Free Software Foundation, Inc. +/* Copyright (C) 1997-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -817,6 +817,23 @@ /* Tangent of X. */ #define tan(Val) __TGMATH_UNARY_REAL_IMAG (Val, tan, ctan) +#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C23) +/* Arc cosine of X, divided by pi.. */ +# 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) +/* Arc tangent of Y/X, divided by pi. */ +#define atan2pi(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, atan2pi) + +/* Cosine of pi * X. */ +# define cospi(Val) __TGMATH_UNARY_REAL_ONLY (Val, cospi) +/* Sine of pi * X. */ +# define sinpi(Val) __TGMATH_UNARY_REAL_ONLY (Val, sinpi) +/* Tangent of pi * X. */ +# define tanpi(Val) __TGMATH_UNARY_REAL_ONLY (Val, tanpi) +#endif /* Hyperbolic functions. */ @@ -906,6 +923,24 @@ /* Return the cube root of X. */ #define cbrt(Val) __TGMATH_UNARY_REAL_ONLY (Val, cbrt) +#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C23) +/* Return 1+X to the Y power. */ +# define compoundn(Val1, Val2) \ + __TGMATH_BINARY_FIRST_REAL_ONLY (Val1, Val2, compoundn) + +/* Return X to the Y power. */ +# define pown(Val1, Val2) __TGMATH_BINARY_FIRST_REAL_ONLY (Val1, Val2, pown) + +/* Return X to the Y power. */ +# define powr(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, powr) + +/* Return the Yth root of X. */ +# define rootn(Val1, Val2) __TGMATH_BINARY_FIRST_REAL_ONLY (Val1, Val2, rootn) + +/* Return 1/sqrt(X). */ +# define rsqrt(Val) __TGMATH_UNARY_REAL_ONLY (Val, rsqrt) +#endif + /* Nearest integer, absolute value, and remainder functions. */ |