summaryrefslogtreecommitdiff
path: root/tests/tcmp_ld.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_ld.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_ld.c')
-rw-r--r--tests/tcmp_ld.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/tcmp_ld.c b/tests/tcmp_ld.c
index e0869b9dc..78ed043f4 100644
--- a/tests/tcmp_ld.c
+++ b/tests/tcmp_ld.c
@@ -34,33 +34,33 @@ main (void)
mpfr_init2(x, MPFR_LDBL_MANT_DIG);
- mpfr_set_ld (x, 2.34763465, GMP_RNDN);
+ mpfr_set_ld (x, 2.34763465, MPFR_RNDN);
if (mpfr_cmp_ld(x, 2.34763465)!=0) {
printf("Error in mpfr_cmp_ld 2.34763465 and ");
- mpfr_out_str(stdout, 10, 0, x, GMP_RNDN); putchar('\n');
+ mpfr_out_str(stdout, 10, 0, x, MPFR_RNDN); putchar('\n');
exit(1);
}
if (mpfr_cmp_ld(x, 2.345)<=0) {
printf("Error in mpfr_cmp_ld 2.345 and ");
- mpfr_out_str(stdout, 10, 0, x, GMP_RNDN); putchar('\n');
+ mpfr_out_str(stdout, 10, 0, x, MPFR_RNDN); putchar('\n');
exit(1);
}
if (mpfr_cmp_ld(x, 2.4)>=0) {
printf("Error in mpfr_cmp_ld 2.4 and ");
- mpfr_out_str(stdout, 10, 0, x, GMP_RNDN); putchar('\n');
+ mpfr_out_str(stdout, 10, 0, x, MPFR_RNDN); putchar('\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_ld (x, 0.0)) {
printf("Error in mpfr_cmp_ld 0.0 and ");
- mpfr_out_str(stdout, 10, 0, x, GMP_RNDN); putchar('\n');
+ mpfr_out_str(stdout, 10, 0, x, MPFR_RNDN); putchar('\n');
exit(1);
}
- mpfr_set_ui (x, 0, GMP_RNDN);
- mpfr_ui_div (x, 1, x, GMP_RNDU);
+ mpfr_set_ui (x, 0, MPFR_RNDN);
+ mpfr_ui_div (x, 1, x, MPFR_RNDU);
if (mpfr_cmp_ld (x, 0.0) == 0)
{
printf ("Error in mpfr_cmp_ld (Inf, 0)\n");