diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-06-10 14:01:33 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-06-10 14:01:33 +0000 |
commit | 2c3b172aeff6c8db829b3933b0a1e015e968dc83 (patch) | |
tree | 2b4788857719cc21aa65128d716c3ff606c772b3 /get_z.c | |
parent | daeae0886bd527bf8cc7f91a073157b1272e0e0a (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |