From 84b3e6169c41317b23a7c7cccf6baaeff275654e Mon Sep 17 00:00:00 2001 From: vlefevre Date: Sun, 13 Jan 2019 01:15:11 +0000 Subject: [tests/tversion.c] Decimal formats: output the encoding type (DPD/BID). (merged changeset r12776 from the trunk, and as a consequence, completed the merge of r13003) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13400 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tversion.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/tversion.c b/tests/tversion.c index 344cabb9b..902aed6f8 100644 --- a/tests/tversion.c +++ b/tests/tversion.c @@ -268,12 +268,18 @@ main (void) err = 1; } - printf ("[tversion] TLS = %s, float128 = %s, decimal = %s," - " GMP internals = %s\n", - mpfr_buildopt_tls_p () ? "yes" : "no", - mpfr_buildopt_float128_p () ? "yes" : "no", - mpfr_buildopt_decimal_p () ? "yes" : "no", - mpfr_buildopt_gmpinternals_p () ? "yes" : "no"); + (printf) ("[tversion] TLS = %s, float128 = %s, decimal = %s," + " GMP internals = %s\n", + mpfr_buildopt_tls_p () ? "yes" : "no", + mpfr_buildopt_float128_p () ? "yes" : "no", + mpfr_buildopt_decimal_p () ? "yes (" +#ifdef DPD_FORMAT + "DPD" +#else + "BID" +#endif + ")" : "no", + mpfr_buildopt_gmpinternals_p () ? "yes" : "no"); (puts) ("[tversion] Shared cache = " #if defined(MPFR_WANT_SHARED_CACHE) -- cgit v1.2.1