summaryrefslogtreecommitdiff
path: root/zeta_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2006-12-19 13:59:59 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2006-12-19 13:59:59 +0000
commite939a4de0d5f82064ab734b7fb753554f32c151e (patch)
tree710f638e7fbd7efea642e41efc177f52486ecdc2 /zeta_ui.c
parentbf422a3c603dcb575722342aa0ac6abaa7bd761a (diff)
downloadmpfr-e939a4de0d5f82064ab734b7fb753554f32c151e.tar.gz
mpfr_div_2exp -> mpfr_div_2ui
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4316 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'zeta_ui.c')
-rw-r--r--zeta_ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zeta_ui.c b/zeta_ui.c
index f5c806c13..0fed20cc2 100644
--- a/zeta_ui.c
+++ b/zeta_ui.c
@@ -81,7 +81,7 @@ mpfr_zeta_ui (mpfr_ptr z, unsigned long m, mp_rnd_t r)
{
mpfr_clear (y);
mpfr_set_ui (z, 1, GMP_RNDZ);
- mpfr_div_2exp (z, z, m, GMP_RNDZ);
+ mpfr_div_2ui (z, z, m, GMP_RNDZ);
mpfr_add_ui (z, z, 1, GMP_RNDZ);
if (r != GMP_RNDU)
return -1;
@@ -201,7 +201,7 @@ mpfr_zeta_ui (mpfr_ptr z, unsigned long m, mp_rnd_t r)
mpz_mul_2exp (s, s, p);
mpz_tdiv_q (s, s, d);
mpfr_set_z (y, s, GMP_RNDN);
- mpfr_div_2exp (y, y, p, GMP_RNDN);
+ mpfr_div_2ui (y, y, p, GMP_RNDN);
err = MPFR_INT_CEIL_LOG2 (err);