diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-06-25 15:30:44 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-06-25 15:30:44 +0000 |
commit | ed46408d7ca819aee567da499f98387d00561660 (patch) | |
tree | 20798b74626c38e5da84b1697e4530d53d3da89f /src/get_float128.c | |
parent | 54e2df608b98124118c8c12f101cb66442f1f341 (diff) | |
download | mpfr-ed46408d7ca819aee567da499f98387d00561660.tar.gz |
[src/get_float128.c] !MPFR_IS_ZERO -> MPFR_NOTZERO; GNU coding style.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8236 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_float128.c')
-rw-r--r-- | src/get_float128.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/get_float128.c b/src/get_float128.c index b1e2f06a3..124f212fb 100644 --- a/src/get_float128.c +++ b/src/get_float128.c @@ -54,12 +54,14 @@ mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode) MPFR_SET_POS (y); r = 0.0; - do { - s = mpfr_get_d (y, MPFR_RNDN); /* high part of y */ - r += (__float128) s; - mpfr_set_d (z, s, MPFR_RNDN); /* exact */ - mpfr_sub (y, y, z, MPFR_RNDN); /* exact */ - } while (!MPFR_IS_ZERO (y)); + do + { + s = mpfr_get_d (y, MPFR_RNDN); /* high part of y */ + r += (__float128) s; + mpfr_set_d (z, s, MPFR_RNDN); /* exact */ + mpfr_sub (y, y, z, MPFR_RNDN); /* exact */ + } + while (MPFR_NOTZERO (y)); mpfr_clear (z); mpfr_clear (y); |