summaryrefslogtreecommitdiff
path: root/mpfr-gmp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-07-19 14:40:25 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-07-19 14:40:25 +0000
commit768c0579dc530efe0cd8c18fe4c929dafbf5d911 (patch)
tree5101e82382bbda2bae0761f666ed976592b11f54 /mpfr-gmp.c
parent1c91c6a456532bd9ddbc7b2c323198e24e6df350 (diff)
downloadmpfr-768c0579dc530efe0cd8c18fe4c929dafbf5d911.tar.gz
Merged changesets 4953, 4955, 4956, 5347 and 5007 from the trunk: code
clean-up that fixes possible problems on particular platforms. Changes: * [mpfr-gmp.{c,h}] Function mpfr_init_gmp_rand is no longer defined. It was private (not documented) and used only in the tests. User code that calls it is broken and may fail as a consequence. * [tests] Support 16-bit int's such as on TI-92. * [tests] No longer use non-reentrant functions such as mpz_random. * [tests] Avoid mpn_random, which leaks memory. * [tests] Completed a test in tset_f.c. * [tests] As a consequence, the tests are performed on different data (even though the default seed is the same). This will also make backport of patches easier. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.3@5414 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-gmp.c')
-rw-r--r--mpfr-gmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/mpfr-gmp.c b/mpfr-gmp.c
index bb0859aff..39eb97786 100644
--- a/mpfr-gmp.c
+++ b/mpfr-gmp.c
@@ -316,19 +316,6 @@ mpfr_rand_raw (mp_ptr mp, gmp_randstate_t rstate, unsigned long int nbits)
mpz_urandomb(z, rstate, nbits);
}
-void
-mpfr_init_gmp_rand ()
-{
- /* Since we don't use __gmp_rands, but mpfr_rands, we need to init
- __gmp_rands before setting the memory functions so that the tests
- don't report an error.
- Only the tests which call mpn_random2 can do that:
- trandom, tset_f and reuse.
- So we just have to call mpn_random before. */
- mp_limb_t dummy;
- mpn_random (&dummy, 1);
-}
-
#ifdef mp_get_memory_functions
void * (*mpfr_allocate_func) (size_t);