summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-01-13 01:15:11 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-01-13 01:15:11 +0000
commit84b3e6169c41317b23a7c7cccf6baaeff275654e (patch)
tree9a8ccb56e27371d6b3a30845adc14b13a06c38c3
parent18eb6fba1ba57e469b537d932232cb0771f4ee96 (diff)
downloadmpfr-84b3e6169c41317b23a7c7cccf6baaeff275654e.tar.gz
[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
-rw-r--r--tests/tversion.c18
1 files 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)