aboutsummaryrefslogtreecommitdiff
path: root/math/tgmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/tgmath.h')
-rw-r--r--math/tgmath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/math/tgmath.h b/math/tgmath.h
index f523d42..0d830a7 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -934,6 +934,9 @@
/* 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