summaryrefslogtreecommitdiff
path: root/tests/tsub.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:38:24 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 14:38:24 +0000
commit9139ea922ac39e09da34f033e6c8ba4845c56a02 (patch)
treefc98dba0c298d5d6880f2419aeb9f16eb31fead6 /tests/tsub.c
parent7bbf44f6aa76af784f3e52ca3fdab5a15126cd6f (diff)
downloadmpfr-9139ea922ac39e09da34f033e6c8ba4845c56a02.tar.gz
mpfr_print_raw -> mpfr_print_binary
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1558 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsub.c')
-rw-r--r--tests/tsub.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/tsub.c b/tests/tsub.c
index a5319063d..cc5d59ad4 100644
--- a/tests/tsub.c
+++ b/tests/tsub.c
@@ -53,8 +53,8 @@ check_diverse ()
if (mpfr_cmp (z, y))
{
fprintf (stderr, "Error in mpfr_sub (5)\n");
- printf ("expected "); mpfr_print_raw (y); putchar ('\n');
- printf ("got "); mpfr_print_raw (z); putchar ('\n');
+ printf ("expected "); mpfr_print_binary (y); putchar ('\n');
+ printf ("got "); mpfr_print_binary (z); putchar ('\n');
exit (1);
}
@@ -66,8 +66,8 @@ check_diverse ()
if (mpfr_cmp (z, y))
{
fprintf (stderr, "Error in mpfr_sub (7)\n");
- printf ("expected "); mpfr_print_raw (y); putchar ('\n');
- printf ("got "); mpfr_print_raw (z); putchar ('\n');
+ printf ("expected "); mpfr_print_binary (y); putchar ('\n');
+ printf ("got "); mpfr_print_binary (z); putchar ('\n');
exit (1);
}
@@ -79,8 +79,8 @@ check_diverse ()
if (mpfr_cmp (z, y))
{
fprintf (stderr, "Error in mpfr_sub (6)\n");
- printf ("expected "); mpfr_print_raw (y); putchar ('\n');
- printf ("got "); mpfr_print_raw (z); putchar ('\n');
+ printf ("expected "); mpfr_print_binary (y); putchar ('\n');
+ printf ("got "); mpfr_print_binary (z); putchar ('\n');
exit (1);
}
@@ -115,8 +115,8 @@ check_diverse ()
if (mpfr_cmp (x, y))
{
fprintf (stderr, "Error in mpfr_sub (1 - 1E-33) with prec=33\n");
- printf ("Expected "); mpfr_print_raw (y); putchar ('\n');
- printf ("got "); mpfr_print_raw (x); putchar ('\n');
+ printf ("Expected "); mpfr_print_binary (y); putchar ('\n');
+ printf ("got "); mpfr_print_binary (x); putchar ('\n');
exit (1);
}
@@ -128,7 +128,7 @@ check_diverse ()
if (mpfr_cmp_ui (x, 1))
{
fprintf (stderr, "Error in mpfr_sub (1 - 1E-33) with prec=32\n");
- printf ("Expected 1.0, got "); mpfr_print_raw (x); putchar ('\n');
+ printf ("Expected 1.0, got "); mpfr_print_binary (x); putchar ('\n');
exit (1);
}
@@ -198,8 +198,8 @@ check_diverse ()
mpfr_sub (z, x, y, GMP_RNDN);
if (mpfr_cmp (z, x)) {
fprintf (stderr, "mpfr_sub(z, x, y) failed for prec(x)=112, prec(y)=98\n");
- printf ("expected "); mpfr_print_raw (x); putchar('\n');
- printf ("got "); mpfr_print_raw (z); putchar('\n');
+ printf ("expected "); mpfr_print_binary (x); putchar('\n');
+ printf ("got "); mpfr_print_binary (z); putchar('\n');
exit (1);
}
@@ -276,8 +276,8 @@ bug_ddefour()
if (mpfr_cmp(ex2, ex3))
{
fprintf (stderr, "Error in ddefour test.\n");
- printf ("ex2="); mpfr_print_raw (ex2); putchar ('\n');
- printf ("ex3="); mpfr_print_raw (ex3); putchar ('\n');
+ printf ("ex2="); mpfr_print_binary (ex2); putchar ('\n');
+ printf ("ex3="); mpfr_print_binary (ex3); putchar ('\n');
exit (1);
}
@@ -318,11 +318,11 @@ check_two_sum (mp_prec_t p)
{
fprintf (stderr, "Wrong inexact flag for prec=%u, rnd=%s\n", (unsigned)p,
mpfr_print_rnd_mode (rnd));
- printf ("x="); mpfr_print_raw(x); putchar('\n');
- printf ("y="); mpfr_print_raw(y); putchar('\n');
- printf ("u="); mpfr_print_raw(u); putchar('\n');
- printf ("v="); mpfr_print_raw(v); putchar('\n');
- printf ("w="); mpfr_print_raw(w); putchar('\n');
+ printf ("x="); mpfr_print_binary(x); putchar('\n');
+ printf ("y="); mpfr_print_binary(y); putchar('\n');
+ printf ("u="); mpfr_print_binary(u); putchar('\n');
+ printf ("v="); mpfr_print_binary(v); putchar('\n');
+ printf ("w="); mpfr_print_binary(w); putchar('\n');
printf ("inexact = %d\n", inexact);
exit (1);
}
@@ -380,10 +380,10 @@ check_inexact ()
fprintf (stderr, "Wrong inexact flag for rnd=%s\n",
mpfr_print_rnd_mode(rnd));
printf ("expected %d, got %d\n", cmp, inexact);
- printf ("x="); mpfr_print_raw (x); putchar ('\n');
- printf ("u="); mpfr_print_raw (u); putchar ('\n');
- printf ("y= "); mpfr_print_raw (y); putchar ('\n');
- printf ("x-u="); mpfr_print_raw (z); putchar ('\n');
+ printf ("x="); mpfr_print_binary (x); putchar ('\n');
+ printf ("u="); mpfr_print_binary (u); putchar ('\n');
+ printf ("y= "); mpfr_print_binary (y); putchar ('\n');
+ printf ("x-u="); mpfr_print_binary (z); putchar ('\n');
exit (1);
}
}