summaryrefslogtreecommitdiff
path: root/src/mul.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-29 13:25:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-29 13:25:34 +0000
commit45445715365d2415a6dd1cbaf4c3d2aea7c454a1 (patch)
tree190814295324b8181a7babc2255b03b52ede504d /src/mul.c
parent8c75d308984c2a6f6443ffd1be64e66c9fa4c690 (diff)
downloadmpfr-45445715365d2415a6dd1cbaf4c3d2aea7c454a1.tar.gz
[src] Clean up of debugging output functions:
* Replaced the internal function mpfr_fprint_binary by a new internal function mpfr_fdump, similar to mpfr_dump, but with a FILE * argument. * Got rid of mpfr_print_binary entirely (it became internal in r2466 for MPFR 2.0.2, released in 2003). Details: * print_raw.c: - moved the mpfr_fprint_binary code to dump.c; - removed mpfr_print_binary. * dump.c: - mpfr_fprint_binary (from print_raw.c) is now defined as static; - added function mpfr_fdump, using mpfr_fprint_binary; - mpfr_dump: use mpfr_fdump instead of the old mpfr_print_binary. * mpfr-impl.h: - replaced mpfr_fprint_binary declaration by mpfr_fdump; - removed mpfr_print_binary declaration. * add1sp.c, mul.c, sub1sp.c: replaced mpfr_fprint_binary by mpfr_fdump and removed the '\n', now output by mpfr_fdump. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11761 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mul.c')
-rw-r--r--src/mul.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mul.c b/src/mul.c
index 86c5da885..c5a072001 100644
--- a/src/mul.c
+++ b/src/mul.c
@@ -184,14 +184,14 @@ mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
"Prec_a = %lu, Prec_b = %lu, Prec_c = %lu\nb = ",
mpfr_print_rnd_mode (rnd_mode),
MPFR_PREC (a), MPFR_PREC (b), MPFR_PREC (c));
- mpfr_fprint_binary (stderr, b);
- fprintf (stderr, "\nc = ");
- mpfr_fprint_binary (stderr, c);
- fprintf (stderr, "\nOldMul: ");
- mpfr_fprint_binary (stderr, ta);
- fprintf (stderr, "\nNewMul: ");
- mpfr_fprint_binary (stderr, a);
- fprintf (stderr, "\nNewInexact = %d | OldInexact = %d\n",
+ mpfr_fdump (stderr, b);
+ fprintf (stderr, "c = ");
+ mpfr_fdump (stderr, c);
+ fprintf (stderr, "OldMul: ");
+ mpfr_fdump (stderr, ta);
+ fprintf (stderr, "NewMul: ");
+ mpfr_fdump (stderr, a);
+ fprintf (stderr, "NewInexact = %d | OldInexact = %d\n",
inexact1, inexact2);
MPFR_ASSERTN(0);
}