diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-02-14 11:36:40 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-02-14 11:36:40 +0000 |
commit | 5bd7aef7971df1929222d93b437d9392b935c1ff (patch) | |
tree | 1c45bd97c1c8108047ad7b8e9e0f80257fdad549 /exp3.c | |
parent | c834099818b8b339bf59918257c2197e49a3ca1d (diff) | |
download | mpfr-5bd7aef7971df1929222d93b437d9392b935c1ff.tar.gz |
mpfr_{div,mul}_2exp -> mpfr_{div,mul}_2ui.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1699 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp3.c')
-rw-r--r-- | exp3.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -110,7 +110,7 @@ mpfr_exp_rational (mpfr_ptr y, mpz_srcptr p, int r, int m) mpfr_set_z(y,S[0], GMP_RNDD); MPFR_EXP(y) += expo; - mpfr_div_2exp(y, y, r*(i-1),GMP_RNDN); + mpfr_div_2ui(y, y, r*(i-1),GMP_RNDN); for (i=0;i<=m;i++) { mpz_clear(P[i]); mpz_clear(S[i]); mpz_clear(ptoj[i]); } TMP_FREE (marker); return 0; @@ -151,7 +151,7 @@ mpfr_exp3 (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode) if (ttt > 0) { shift_x = ttt; - mpfr_mul_2exp(x_copy,x,-ttt, GMP_RNDN); + mpfr_div_2ui(x_copy, x, ttt, GMP_RNDN); ttt = MPFR_EXP(x_copy); } realprec = MPFR_PREC(y)+logn; |