diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 19:54:25 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-06 19:54:25 +0000 |
commit | cde48a64acc3a3fa9f9e1a72a75d6294b1ddf602 (patch) | |
tree | 47552333ace74f11950c2021ff8c70973a1613ff | |
parent | 83e97eec2d8c7537e9cf38aee3a0635e550f7d81 (diff) | |
download | mpfr-cde48a64acc3a3fa9f9e1a72a75d6294b1ddf602.tar.gz |
got rid of mpz_dump (undocumented in GMP)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11927 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/mpfr-mini-gmp.c | 11 | ||||
-rw-r--r-- | src/mpfr-mini-gmp.h | 5 | ||||
-rw-r--r-- | tests/tget_z.c | 6 | ||||
-rw-r--r-- | tests/tgmpop.c | 8 |
4 files changed, 8 insertions, 22 deletions
diff --git a/src/mpfr-mini-gmp.c b/src/mpfr-mini-gmp.c index a9f6db766..c215882a1 100644 --- a/src/mpfr-mini-gmp.c +++ b/src/mpfr-mini-gmp.c @@ -208,15 +208,4 @@ mpn_tdiv_qr (mp_limb_t *qp, mp_limb_t *rp, mp_size_t qxn, } #endif -/*************************** miscellaneous functions *************************/ - -#ifdef WANT_mpz_dump -void -mpz_dump (mpz_t z) -{ - mpz_out_str (stdout, 10, z); - putchar ('\n'); -} -#endif - #endif /* MPFR_USE_MINI_GMP */ diff --git a/src/mpfr-mini-gmp.h b/src/mpfr-mini-gmp.h index c8c002aea..bba04f867 100644 --- a/src/mpfr-mini-gmp.h +++ b/src/mpfr-mini-gmp.h @@ -136,11 +136,6 @@ void mpn_tdiv_qr (mp_limb_t *, mp_limb_t *, mp_size_t, const mp_limb_t *, mp_size_t, const mp_limb_t *, mp_size_t); #endif -#ifndef mpz_dump -#define WANT_mpz_dump -void mpz_dump (mpz_t); -#endif - #ifndef mpz_rrandomb #define mpz_rrandomb mpz_urandomb #endif diff --git a/tests/tget_z.c b/tests/tget_z.c index 3fc9e6dcb..4d1f5863b 100644 --- a/tests/tget_z.c +++ b/tests/tget_z.c @@ -187,9 +187,9 @@ check_one (mpz_ptr z) mpfr_print_rnd_mode ((mpfr_rnd_t) rnd), e ? ", reduced exponent range" : ""); printf (" f = "); mpfr_dump (f); - printf ("expected "); mpz_dump (ex); - printf (" got "); mpz_dump (got); - printf ("Expected inex ~ %d, got %d (%s)\n", + printf ("expected "); mpz_out_str (stdout, 10, ex); + printf ("\n got "); mpz_out_str (stdout, 10, got); + printf ("\nExpected inex ~ %d, got %d (%s)\n", ex_inex, inex, same ? "OK" : "wrong"); printf ("Flags:\n"); printf (" in"); flags_out (flags[fi]); diff --git a/tests/tgmpop.c b/tests/tgmpop.c index 6be2043c4..4c16fbac5 100644 --- a/tests/tgmpop.c +++ b/tests/tgmpop.c @@ -31,8 +31,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., str, res, __gmpfr_flags); \ printf ("Got "); mpfr_dump (y); \ printf ("X = "); mpfr_dump (x); \ - printf ("Q = "); mpz_dump (mpq_numref(q)); \ - printf (" /"); mpz_dump (mpq_denref(q)); \ + printf ("Q = "); mpz_out_str (stdout, 10, mpq_numref(q)); \ + printf ("\n /"); mpz_out_str (stdout, 10, mpq_denref(q)); \ + printf ("\n"); \ exit (1); \ } @@ -42,7 +43,8 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., str, res, __gmpfr_flags); \ printf ("Got "); mpfr_dump (y); \ printf ("X = "); mpfr_dump (x); \ - printf ("Z = "); mpz_dump (z); \ + printf ("Z = "); mpz_out_str (stdout, 10, z); \ + printf ("\n"); \ exit (1); \ } |