summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/mpfr.texi5
-rw-r--r--src/mpfr.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index 7626ba0fe..023afc7a5 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -2248,8 +2248,9 @@ rounded in the direction @var{rnd}.
@deftypefunx int mpfr_ui_pow (mpfr_t @var{rop}, unsigned long int @var{op1}, mpfr_t @var{op2}, mpfr_rnd_t @var{rnd})
Set @var{rop} to @m{@var{op1}^{@var{op2}}, @var{op1} raised to @var{op2}},
rounded in the direction @var{rnd}.
-The function @code{mpfr_pow_n} is just an alias for @code{mpfr_pow_si},
-to mimic the IEEE@tie{}754-2019 function @code{pown}.
+@c FIXME: mpfr_pown should be an alias of mpfr_pow_sj to follow ISO C2x.
+@c The function @code{mpfr_pow_n} is just an alias for @code{mpfr_pow_si},
+@c %to mimic the IEEE@tie{}754-2019 function @code{pown}.
Special values are handled as described in the ISO C99 and IEEE@tie{}754-2008
standards for the @code{pow} function:
@itemize @bullet
diff --git a/src/mpfr.h b/src/mpfr.h
index 644ad2f78..220d6af05 100644
--- a/src/mpfr.h
+++ b/src/mpfr.h
@@ -563,6 +563,8 @@ __MPFR_DECLSPEC int mpfr_snprintf (char*, size_t, const char*, ...);
__MPFR_DECLSPEC int mpfr_pow (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t);
__MPFR_DECLSPEC int mpfr_pow_si (mpfr_ptr, mpfr_srcptr, long, mpfr_rnd_t);
+/* FIXME: mpfr_pown should be an alias of mpfr_pow_sj to follow ISO C2x,
+ where pown is defined with intmax_t n. */
/* define mpfr_pown (defined in IEEE 754-2019) as an alias for mpfr_pow_si */
#define mpfr_pown mpfr_pow_si
__MPFR_DECLSPEC int mpfr_compound (mpfr_ptr, mpfr_srcptr, long, mpfr_rnd_t);