summaryrefslogtreecommitdiff
path: root/exp2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-12-27 03:10:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-12-27 03:10:01 +0000
commit50ef3fcb7f2308ba5cbc7ad3c9d6aa2533eebdb9 (patch)
treeec4cdcb028dc44d450aeb4aba104b5023024856f /exp2.c
parentebf97d3df66e0b1cb0b0fa6dcd6443ce96942b71 (diff)
downloadmpfr-50ef3fcb7f2308ba5cbc7ad3c9d6aa2533eebdb9.tar.gz
exp2.c: removed incorrect comment (the overflow test was OK due to the
mpfr_clear_flags above, but the new test is slightly better anyway). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5132 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp2.c')
-rw-r--r--exp2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/exp2.c b/exp2.c
index e5f67a0c8..ad8bbdc62 100644
--- a/exp2.c
+++ b/exp2.c
@@ -138,9 +138,7 @@ mpfr_exp2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
mpfr_clear (xfrac);
mpfr_clear_flags ();
mpfr_mul_2si (y, y, xint, GMP_RNDN); /* exact or overflow */
- /* Note: We can have an overflow only when t was rounded up to 2.
- We do not check the overflow flag as it could have already been
- set before the call to mpfr_exp2. */
+ /* Note: We can have an overflow only when t was rounded up to 2. */
MPFR_ASSERTD (MPFR_IS_PURE_FP (y) || inexact > 0);
MPFR_SAVE_EXPO_UPDATE_FLAGS (expo, __gmpfr_flags);
MPFR_SAVE_EXPO_FREE (expo);