diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-05-28 23:11:56 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-05-28 23:11:56 +0000 |
commit | c56ce227d4cf7b3a3249c39b72adca7a1e16e3d1 (patch) | |
tree | 4f6bbd3c43c4067f6db8ee397fc63eeb98e9c349 /exp2.c | |
parent | 5fa8f2f43169c98a2aecbe2e06e4fdd710e8fb19 (diff) | |
download | mpfr-c56ce227d4cf7b3a3249c39b72adca7a1e16e3d1.tar.gz |
MPFR_RET (mpfr_check_range (...)) -> return mpfr_check_range (...)
as mpfr_check_range already handles the inexact flag.
Reformatting (removed trailing spaces, untabified).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4495 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp2.c')
-rw-r--r-- | exp2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ mpfr_exp2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) |2^x - 1| <= x < 2^EXP(x). If x > 0 we must round away from 0 (dir=1); if x < 0 we must round towards 0 (dir=0). */ MPFR_FAST_COMPUTE_IF_SMALL_INPUT (y, __gmpfr_one, -MPFR_GET_EXP(x), 0, - MPFR_SIGN(x) > 0, + MPFR_SIGN(x) > 0, rnd_mode, inexact = _inexact; goto end); /* since the smallest representable non-zero float is 1/2*2^__gmpfr_emin, @@ -147,5 +147,5 @@ mpfr_exp2 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) MPFR_SAVE_EXPO_FREE (expo); end: - MPFR_RET (mpfr_check_range (y, inexact, rnd_mode)); + return mpfr_check_range (y, inexact, rnd_mode); } |