diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-23 16:47:46 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-23 16:47:46 +0000 |
commit | c36411789faeb8766df0ebbc126847ae7ef323d3 (patch) | |
tree | 6ba7d098e3b9ab08b03760c40b2f675c6f671efe /tests/tfactorial.c | |
parent | 4f0fd1300292f0f142dc108490bff1c370499ee3 (diff) | |
download | mpfr-c36411789faeb8766df0ebbc126847ae7ef323d3.tar.gz |
use GMP_RND_MAX instead of hard-coded constant
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2795 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tfactorial.c')
-rw-r--r-- | tests/tfactorial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tfactorial.c b/tests/tfactorial.c index f7a7294d5..ce28a3de3 100644 --- a/tests/tfactorial.c +++ b/tests/tfactorial.c @@ -90,7 +90,7 @@ test_int (void) { mpfr_set_prec (x, p); mpfr_set_prec (y, p); - for (r = 0; r < 4; r++) + for (r = 0; r < GMP_RND_MAX; r++) { inex1 = mpfr_fac_ui (x, n, r); inex2 = mpfr_set_z (y, f, r); @@ -151,8 +151,8 @@ main (int argc, char *argv[]) yprec = prec + 10; mpfr_set_prec (y, yprec); - for (n=0; n<50; n++) - for (rnd=0; rnd<4; rnd++) + for (n = 0; n < 50; n++) + for (rnd = 0; rnd < GMP_RND_MAX; rnd++) { inexact = mpfr_fac_ui (y, n, rnd); err = (rnd == GMP_RNDN) ? yprec + 1 : yprec; |