diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-27 14:38:29 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-27 14:38:29 +0000 |
commit | fd900e7af1c949c6fc66bcc7be61b030be645833 (patch) | |
tree | c451ce82704f6d414875c1e74c782dfd72266d69 | |
parent | ac4b29193891f7a5c5d6a93b751612b6585b45fb (diff) | |
download | mpfr-fd900e7af1c949c6fc66bcc7be61b030be645833.tar.gz |
previous fix was completely wrong
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1786 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | exp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ mpfr_exp2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) /* since the smallest representable non-zero float is 1/2*2^__mpfr_emin, if x < __mpfr_emin - 1, the result is either 1/2*2^__mpfr_emin or 0 */ - if (mpfr_cmp_ui_2exp (x, 1, __mpfr_emin - 1) < 0) + if (mpfr_cmp_si_2exp (x, __mpfr_emin - 1, 0) < 0) return mpfr_set_underflow (y, rnd_mode, 1); /* General case */ |