summaryrefslogtreecommitdiff
path: root/tests/mpf_compat.h
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-08-27 09:27:10 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-08-27 09:27:10 +0000
commit503d60304ed450d3b54df5813875eb0ea24662eb (patch)
tree0a08fb043a7a4c173a182b906327f0f7443df82f /tests/mpf_compat.h
parent5e129cb3d25c74642f2e5b6e2403666cd2c3f891 (diff)
downloadmpfr-503d60304ed450d3b54df5813875eb0ea24662eb.tar.gz
replaced obsolete GMP functions (suggested by Brian Gladman):
1. mpz_div_2exp ==> mpz_fdiv_q_2exp 2. mpz_div_ui ==> mpz_fdiv_q_ui 3. gmp_randinit (state, GMP_RAND_ALG_LC, 128) ==> gmp_randinit_lc_2exp_size (state, 128) (Didn't replace mpn_divrem by mpn_tdiv_qr since the parameters differ, and also for efficiency reasons.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6397 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/mpf_compat.h')
-rw-r--r--tests/mpf_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h
index 1564d0ee8..89c2d70a8 100644
--- a/tests/mpf_compat.h
+++ b/tests/mpf_compat.h
@@ -207,7 +207,7 @@ main ()
i = mpf_fits_ushort_p (x);
i = mpf_fits_sshort_p (x);
- gmp_randinit (state, GMP_RAND_ALG_LC, 128);
+ gmp_randinit_lc_2exp_size (state, 128);
mpf_urandomb (x, state, 10);
gmp_randclear (state);