summaryrefslogtreecommitdiff
path: root/tests/trandom.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-26 13:27:16 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-26 13:27:16 +0000
commit9f1f8d25b276fcfc67c6e231f9239b2e49646099 (patch)
tree743d3437a1426c0090f01ae1137e3261f42639a4 /tests/trandom.c
parent59944129ef3733a50e0628588027047c03646d8f (diff)
downloadmpfr-9f1f8d25b276fcfc67c6e231f9239b2e49646099.tar.gz
Change from MP_LIMB_T_ONE to MPFR_LIMB_ONE and/or MPFR_LIMB_MASK.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2858 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/trandom.c')
-rw-r--r--tests/trandom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trandom.c b/tests/trandom.c
index 89269b981..1cdf892f1 100644
--- a/tests/trandom.c
+++ b/tests/trandom.c
@@ -99,7 +99,7 @@ test_random2 (long nbtests, mp_prec_t prec, int verbose)
{
mpfr_random2 (x, xn, 0);
/* check that lower bits are zero */
- if (MPFR_MANT(x)[0] & ((MP_LIMB_T_ONE << sh) - MP_LIMB_T_ONE))
+ if (MPFR_MANT(x)[0] & MPFR_LIMB_MASK(sh))
{
printf ("Error: mpfr_random2() returns invalid numbers:\n");
mpfr_print_binary (x); puts ("");
@@ -176,7 +176,7 @@ test_urandomb (long nbtests, mp_prec_t prec, int verbose)
{
mpfr_urandomb (x, state);
/* check that lower bits are zero */
- if (MPFR_MANT(x)[0] & ((MP_LIMB_T_ONE << sh) - MP_LIMB_T_ONE))
+ if (MPFR_MANT(x)[0] & MPFR_LIMB_MASK(sh))
{
printf ("Error: mpfr_urandomb() returns invalid numbers:\n");
mpfr_print_binary (x); puts ("");