diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-07-03 14:53:06 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-07-03 14:53:06 +0000 |
commit | 1e86d01cac63f8ad54d3cfb6f9a9e280ec15bbca (patch) | |
tree | 7884f52f567ea8b74012eeb8fef26fd9c7887b41 /src/rndna.c | |
parent | 029f94c31f61c4d769738956629a383ec94d1420 (diff) | |
download | mpfr-1e86d01cac63f8ad54d3cfb6f9a9e280ec15bbca.tar.gz |
[rndna.c] changed the specification since on 32-bit machines we have no margin
for the smallest exponent emin
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8310 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/rndna.c')
-rw-r--r-- | src/rndna.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rndna.c b/src/rndna.c index bceb1c103..401c36414 100644 --- a/src/rndna.c +++ b/src/rndna.c @@ -37,11 +37,10 @@ mpfr_round_nearest_away (mpfr_t rop, mpfr_srcptr op, mpfr_prec_t n = mpfr_get_prec (rop); MPFR_SAVE_EXPO_DECL (expo); - /* we check emin has not the smallest possible value, otherwise we cannot + /* when emin is the smallest possible value, we cannot determine the correct round-to-nearest-away rounding for - 0.25*2^emin_min, which gets rounded to 0 with nearest-even, - like 0.24*2^emin_min */ - MPFR_ASSERTN(mpfr_get_emin () > mpfr_get_emin_min ()); + 0.25*2^emin, which gets rounded to 0 with nearest-even, + instead of 0.5^2^emin. */ MPFR_SAVE_EXPO_MARK (expo); |