summaryrefslogtreecommitdiff
path: root/tests/tcmp_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
commitf5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch)
tree1058cf0d07593fa2cec9f32b4988ac40611b4bff /tests/tcmp_ui.c
parentcbd40e1cb659b579e608afbe7a05da5b15a860be (diff)
downloadmpfr-f5f7883fc7cf47d38ed493a882fd7109bdd589bb.tar.gz
GMP_RNDX -> MPFR_RNDX
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp_ui.c')
-rw-r--r--tests/tcmp_ui.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/tcmp_ui.c b/tests/tcmp_ui.c
index e50d302c4..9c569aa9a 100644
--- a/tests/tcmp_ui.c
+++ b/tests/tcmp_ui.c
@@ -100,7 +100,7 @@ main (void)
mpfr_init(x);
/* tests for cmp_ui */
- mpfr_set_ui (x, 3, GMP_RNDZ);
+ mpfr_set_ui (x, 3, MPFR_RNDZ);
if ((mpfr_cmp_ui) (x, i = 3) != 0)
{
printf ("Error in mpfr_cmp_ui(3.0, 3)\n");
@@ -116,14 +116,14 @@ main (void)
printf ("Error in mpfr_cmp_ui(3.0,4)\n");
exit (1);
}
- mpfr_set_ui (x, 0, GMP_RNDZ);
- mpfr_neg (x, x, GMP_RNDZ);
+ mpfr_set_ui (x, 0, MPFR_RNDZ);
+ mpfr_neg (x, x, MPFR_RNDZ);
if (mpfr_cmp_ui (x, i = 0))
{
printf ("Error in mpfr_cmp_ui(0.0,0)\n");
exit (1);
}
- mpfr_set_ui (x, 1, GMP_RNDZ);
+ mpfr_set_ui (x, 1, MPFR_RNDZ);
if (mpfr_cmp_ui (x, i = 0) == 0)
{
printf ("Error in mpfr_cmp_ui(1.0,0)\n");
@@ -143,15 +143,15 @@ main (void)
exit (1);
}
- mpfr_set_si (x, -1, GMP_RNDN);
+ mpfr_set_si (x, -1, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (x, 1) < 0);
MPFR_ASSERTN(mpfr_cmp_ui (x, 0) < 0);
- mpfr_set_ui (x, 1, GMP_RNDN);
+ mpfr_set_ui (x, 1, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (x, 0) > 0);
/* tests for cmp_si */
- (mpfr_set_si) (x, -3, GMP_RNDZ);
+ (mpfr_set_si) (x, -3, MPFR_RNDZ);
if ((mpfr_cmp_si) (x, s = -3) != 0)
{
printf ("Error in mpfr_cmp_si(-3.0,-3)\n");
@@ -182,19 +182,19 @@ main (void)
}
/* case b=0 */
- mpfr_set_ui (x, 0, GMP_RNDZ);
+ mpfr_set_ui (x, 0, MPFR_RNDZ);
MPFR_ASSERTN(mpfr_cmp_si (x, 0) == 0);
MPFR_ASSERTN(mpfr_cmp_si (x, 1) < 0);
MPFR_ASSERTN(mpfr_cmp_si (x, -1) > 0);
/* case i=0 */
- mpfr_set_ui (x, 1, GMP_RNDZ);
+ mpfr_set_ui (x, 1, MPFR_RNDZ);
MPFR_ASSERTN(mpfr_cmp_si (x, 0) > 0);
- mpfr_set_ui (x, 0, GMP_RNDZ);
+ mpfr_set_ui (x, 0, MPFR_RNDZ);
MPFR_ASSERTN(mpfr_cmp_si (x, 0) == 0);
- mpfr_neg (x, x, GMP_RNDZ);
+ mpfr_neg (x, x, MPFR_RNDZ);
MPFR_ASSERTN(mpfr_cmp_si (x, 0) == 0);
- mpfr_set_si (x, -1, GMP_RNDZ);
+ mpfr_set_si (x, -1, MPFR_RNDZ);
MPFR_ASSERTN(mpfr_cmp_si (x, 0) < 0);
/* case large x */
@@ -208,8 +208,8 @@ main (void)
MPFR_ASSERTN(mpfr_cmp_si (x, -1) < 0);
/* corner case */
- mpfr_set_ui (x, 1, GMP_RNDZ);
- mpfr_mul_2exp (x, x, BITS_PER_MP_LIMB - 1, GMP_RNDZ);
+ mpfr_set_ui (x, 1, MPFR_RNDZ);
+ mpfr_mul_2exp (x, x, BITS_PER_MP_LIMB - 1, MPFR_RNDZ);
/* now EXP(x)=BITS_PER_MP_LIMB */
MPFR_ASSERTN(mpfr_cmp_si (x, 1) > 0);