summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-05-31 13:44:36 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-05-31 13:44:36 +0000
commitcdad2acbe0da3646040d2e29c9710f212942a717 (patch)
treef131bbbb5182e942ed046e195304d8c29a79e01a
parent5ce6d2679a25cc942a421c76f6e045addeec64ca (diff)
downloadmpfr-cdad2acbe0da3646040d2e29c9710f212942a717.tar.gz
[mpfr.texi, NEWS] Update related to r6879: "Made defined the previously
undefined cases of mpfr_get_si, mpfr_get_ui, mpfr_get_sj, mpfr_get_uj, mpfr_get_z and mpfr_get_z_2exp. In such cases, the erange flag is set.". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6893 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--NEWS4
-rw-r--r--mpfr.texi15
2 files changed, 19 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fc7552128..71911dc1a 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,10 @@ Changes from versions 2.4.* to version 3.0:
- mpfr_strtofr now accepts bases from 37 to 62.
- mpfr_custom_get_mantissa was renamed to mpfr_custom_get_significand
(mpfr_custom_get_mantissa is still available via a #define).
+- Functions mpfr_get_si, mpfr_get_ui, mpfr_get_sj, mpfr_get_uj,
+ mpfr_get_z and mpfr_get_z_2exp no longer have cases with undefined
+ behavior; in these cases, the behavior is now specified, and in
+ particular, the erange flag is set.
- New functions mpfr_buildopt_tls_p and mpfr_buildopt_decimal_p giving
information about options used at MPFR build time.
- New function mpfr_regular_p.
diff --git a/mpfr.texi b/mpfr.texi
index 95ecb65aa..f1891d59b 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -3261,6 +3261,11 @@ This function was returning zero, except for NaN and Inf, which do not
exist in MPF. The @emph{erange} flag is now set in these cases,
and @code{mpfr_get_f} now returns the usual ternary value.
+@item @code{mpfr_get_si}, @code{mpfr_get_sj}, @code{mpfr_get_ui}
+and @code{mpfr_get_uj} changed in MPFR 3.0.
+In previous MPFR versions, the cases where the @emph{erange} flag
+is set were unspecified.
+
@item @code{mpfr_get_z} changed in MPFR 3.0.
The return type was @code{void}; it is now @code{int}, and the usual
ternary value is returned. Thus programs that need to work with both
@@ -3285,6 +3290,16 @@ as in:
Alternatively, @code{if ... else} can be used instead of the
conditional operator.
+Moreover the cases where the @emph{erange} flag is set were unspecified
+in MPFR 2.x.
+
+@item @code{mpfr_get_z_exp} changed in MPFR 3.0.
+In previous MPFR versions, the cases where the @emph{erange} flag
+is set were unspecified.
+Note: this function has been renamed to @code{mpfr_get_z_2exp}
+in MPFR 3.0, but @code{mpfr_get_z_exp} is still available for
+compatibility reasons.
+
@item @code{mpfr_strtofr} changed in MPFR 2.3.1 and MPFR 2.4.
This was actually a bug fix since the code and the documentation did
not match. But both were changed in order to have a more consistent