summaryrefslogtreecommitdiff
path: root/get_z.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-10 14:01:33 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-06-10 14:01:33 +0000
commit2c3b172aeff6c8db829b3933b0a1e015e968dc83 (patch)
tree2b4788857719cc21aa65128d716c3ff606c772b3 /get_z.c
parentdaeae0886bd527bf8cc7f91a073157b1272e0e0a (diff)
downloadmpfr-2c3b172aeff6c8db829b3933b0a1e015e968dc83.tar.gz
Optimize a bit.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2923 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_z.c')
-rw-r--r--get_z.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get_z.c b/get_z.c
index d3fe1c638..969366f0e 100644
--- a/get_z.c
+++ b/get_z.c
@@ -31,7 +31,7 @@ mpz_set_fr (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd)
/* if exp <= 0, then |f|<1, thus |o(f)|<=1 */
mpfr_init2 (r, (exp <= 0) ? MPFR_PREC_MIN : exp + 1);
mpfr_rint (r, f, rnd);
- MPFR_ASSERTN (mpfr_number_p (r) );
+ MPFR_ASSERTN (MPFR_IS_FP (r) );
exp = mpfr_get_z_exp (z, r);
if (exp >= 0)
mpz_mul_2exp (z, z, exp);