summaryrefslogtreecommitdiff
path: root/tests/tgmpop.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-22 21:13:45 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-22 21:13:45 +0000
commit21f6d19ba9df0a5edcb9fd03fd95d091372480cc (patch)
treee5025de2abe1bcd78324f9ddf8ee10684ea7ab39 /tests/tgmpop.c
parenta8c6729b7306e6bac606dcda6d2fd5771ac23459 (diff)
downloadmpfr-21f6d19ba9df0a5edcb9fd03fd95d091372480cc.tar.gz
more work on branch faithful
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10480 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgmpop.c')
-rw-r--r--tests/tgmpop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tgmpop.c b/tests/tgmpop.c
index 688d2bf85..4110b8a7b 100644
--- a/tests/tgmpop.c
+++ b/tests/tgmpop.c
@@ -571,13 +571,13 @@ test_genericz (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N,
{
mpfr_urandomb (arg1, RANDS);
mpz_urandomb (arg2, RANDS, 1024);
- rnd = RND_RAND ();
+ do rnd = RND_RAND (); while (rnd == MPFR_RNDF);
mpfr_set_prec (dst_big, 2*prec);
- compare = func(dst_big, arg1, arg2, rnd);
+ compare = func (dst_big, arg1, arg2, rnd);
if (mpfr_can_round (dst_big, 2*prec, rnd, rnd, prec))
{
mpfr_set (tmp, dst_big, rnd);
- inexact = func(dst_small, arg1, arg2, rnd);
+ inexact = func (dst_small, arg1, arg2, rnd);
if (mpfr_cmp (tmp, dst_small))
{
printf ("Results differ for prec=%u rnd_mode=%s and %s_z:\n"
@@ -648,7 +648,7 @@ test_generic2z (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N,
{
mpfr_urandomb (arg1, RANDS);
mpz_urandomb (arg2, RANDS, 1024);
- rnd = RND_RAND ();
+ do rnd = RND_RAND (); while (rnd == MPFR_RNDF);
mpfr_set_prec (dst_big, 2*prec);
compare = func(dst_big, arg2, arg1, rnd);
if (mpfr_can_round (dst_big, 2*prec, rnd, rnd, prec))
@@ -726,7 +726,7 @@ test_genericq (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N,
mpfr_urandomb (arg1, RANDS);
mpq_set_ui (arg2, randlimb (), randlimb() );
mpq_canonicalize (arg2);
- rnd = RND_RAND ();
+ do rnd = RND_RAND (); while (rnd == MPFR_RNDF);
mpfr_set_prec (dst_big, prec+10);
compare = func(dst_big, arg1, arg2, rnd);
if (mpfr_can_round (dst_big, prec+10, rnd, rnd, prec))