diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-27 03:10:01 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-27 03:10:01 +0000 |
commit | 50ef3fcb7f2308ba5cbc7ad3c9d6aa2533eebdb9 (patch) | |
tree | ec4cdcb028dc44d450aeb4aba104b5023024856f /exp2.c | |
parent | ebf97d3df66e0b1cb0b0fa6dcd6443ce96942b71 (diff) | |
download | mpfr-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |