diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-29 13:25:34 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-29 13:25:34 +0000 |
commit | 45445715365d2415a6dd1cbaf4c3d2aea7c454a1 (patch) | |
tree | 190814295324b8181a7babc2255b03b52ede504d /src/add1sp.c | |
parent | 8c75d308984c2a6f6443ffd1be64e66c9fa4c690 (diff) | |
download | mpfr-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/add1sp.c')
-rw-r--r-- | src/add1sp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/add1sp.c b/src/add1sp.c index 80606281d..004ffb7a7 100644 --- a/src/add1sp.c +++ b/src/add1sp.c @@ -76,14 +76,14 @@ int mpfr_add1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) (unsigned long) MPFR_PREC (a), (unsigned long) MPFR_PREC (b), (unsigned long) MPFR_PREC (c)); - mpfr_fprint_binary (stderr, tmpb); - fprintf (stderr, "\nC = "); - mpfr_fprint_binary (stderr, tmpc); - fprintf (stderr, "\n\nadd1 : "); - mpfr_fprint_binary (stderr, tmpa); - fprintf (stderr, "\nadd1sp: "); - mpfr_fprint_binary (stderr, a); - fprintf (stderr, "\nInexact sp = %d | Inexact = %d\n" + mpfr_fdump (stderr, tmpb); + fprintf (stderr, "C = "); + mpfr_fdump (stderr, tmpc); + fprintf (stderr, "\nadd1 : "); + mpfr_fdump (stderr, tmpa); + fprintf (stderr, "add1sp: "); + mpfr_fdump (stderr, a); + fprintf (stderr, "Inexact sp = %d | Inexact = %d\n" "Flags sp = %u | Flags = %u\n", inexact, inexact2, flags, flags2); MPFR_ASSERTN (0); |