summaryrefslogtreecommitdiff
path: root/exp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-14 08:52:44 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-14 08:52:44 +0000
commitd71cf99ec93271eb23df466b55240249324359a3 (patch)
tree60bee55bbd7e58e4e1a143e2d55ffc0e51c4f88c /exp.c
parent203303e1040010476364808f97e613dddd5af003 (diff)
downloadmpfr-d71cf99ec93271eb23df466b55240249324359a3.tar.gz
Fixed mpfr_set_overflow, added tests for mpfr_set_underflow
and mpfr_set_overflow, and reverted exp.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2411 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp.c')
-rw-r--r--exp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/exp.c b/exp.c
index e2dd87f4b..9439b8e5e 100644
--- a/exp.c
+++ b/exp.c
@@ -73,8 +73,7 @@ mpfr_exp (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
x >= __gmpfr_emax * log(2) */
d = mpfr_get_d1 (x);
if (d >= (double) __gmpfr_emax * LOG2)
- return mpfr_set_overflow (y, (rnd_mode == GMP_RNDZ) ? GMP_RNDD : rnd_mode,
- 1);
+ return mpfr_set_overflow (y, rnd_mode, 1);
/* result is 0 when exp(x) < 1/2*2^(__gmpfr_emin), i.e.
x < (__gmpfr_emin-1) * LOG2 */