summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-27 14:38:29 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-27 14:38:29 +0000
commitfd900e7af1c949c6fc66bcc7be61b030be645833 (patch)
treec451ce82704f6d414875c1e74c782dfd72266d69
parentac4b29193891f7a5c5d6a93b751612b6585b45fb (diff)
downloadmpfr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exp2.c b/exp2.c
index de57355ae..48cc8b95c 100644
--- a/exp2.c
+++ b/exp2.c
@@ -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 */