diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-11-19 12:39:10 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-11-19 12:39:10 +0000 |
commit | 38c77249c6671159c0c7e40a73f1f5a3bc76dc8e (patch) | |
tree | fd12f35cf4b230dfcccf5eaf65a216f3ba0cdca7 /get_z.c | |
parent | 68d7536264604dfa93c6540d11fd292e6e14e3ff (diff) | |
download | mpfr-38c77249c6671159c0c7e40a73f1f5a3bc76dc8e.tar.gz |
Improve coverage tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3107 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_z.c')
-rw-r--r-- | get_z.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,7 +26,7 @@ void mpfr_get_z (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd) { mpfr_t r; - mp_exp_t exp = MPFR_EXP(f); + mp_exp_t exp = MPFR_EXP (f); /* if exp <= 0, then |f|<1, thus |o(f)|<=1 */ MPFR_ASSERTD (MPFR_PREC_MIN == 2); @@ -34,6 +34,7 @@ mpfr_get_z (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd) mpfr_rint (r, f, rnd); MPFR_ASSERTN (MPFR_IS_FP (r) ); exp = mpfr_get_z_exp (z, r); + /* FIXME: It seems that exp < 0 is always true */ if (exp >= 0) mpz_mul_2exp (z, z, exp); else |