summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-12-02 16:48:21 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-12-02 16:48:21 +0000
commitcb0409b00d9f28a04083fcd15c256f83668cd1a9 (patch)
tree5e49c58b4658e69f2a5a9c1e5dc386ad172c5b39
parent0ffd847b15b2aed098e41feedc98ea25afc9465f (diff)
downloadmpc-cb0409b00d9f28a04083fcd15c256f83668cd1a9.tar.gz
[tests\] Add random generators for mpfr_t and mpc_t parameter.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/branches/benchs_tests@1346 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/mpc-tests.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mpc-tests.h b/tests/mpc-tests.h
index fe3e452..6464bc3 100644
--- a/tests/mpc-tests.h
+++ b/tests/mpc-tests.h
@@ -106,6 +106,12 @@ extern void test_start (void);
extern void test_end (void);
extern void test_default_random (mpc_ptr, mp_exp_t, mp_exp_t, unsigned int, unsigned int);
+void test_random_mpfr (mpfr_ptr x, mpfr_exp_t emin, mpfr_exp_t emax,
+ unsigned int negative_probability);
+void test_random_mpc (mpc_ptr z, mpfr_exp_t emin, mpfr_exp_t emax,
+ unsigned int negative_probability);
+
+
/** COMPARISON FUNCTIONS **/
/* some sign are unspecified in ISO C99, thus we record in struct known_signs_t