summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-09-20 00:50:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-09-20 00:50:01 +0000
commit771820b4ff47a6dff24b4c33e8a30b1f64e4e400 (patch)
treec88d9a6422703570d195b6b6ebb6292cbc8db24e /examples
parent7ee902b4901f1dda5f1afbffa98e1360a7e53e4f (diff)
downloadmpfr-771820b4ff47a6dff24b4c33e8a30b1f64e4e400.tar.gz
[examples/version.c] Output mpfr_buildopt_gmpinternals_p() and
mpfr_buildopt_tune_case() values with MPFR 3.1 or later. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7870 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'examples')
-rw-r--r--examples/version.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/version.c b/examples/version.c
index 57c0f8809..660158a7b 100644
--- a/examples/version.c
+++ b/examples/version.c
@@ -64,9 +64,15 @@ int main (void)
MPFR_VERSION_MINOR, MPFR_VERSION_PATCHLEVEL);
#if MPFR_VERSION_MAJOR >= 3
- printf ("MPFR features: TLS = %s, decimal = %s\n",
+ printf ("MPFR features: TLS = %s, decimal = %s",
mpfr_buildopt_tls_p () ? "yes" : "no",
mpfr_buildopt_decimal_p () ? "yes" : "no");
+# if MPFR_VERSION_MAJOR > 3 || MPFR_VERSION_MINOR >= 1
+ printf (", GMP internals = %s\nMPFR tuning: %s",
+ mpfr_buildopt_gmpinternals_p () ? "yes" : "no",
+ mpfr_buildopt_tune_case ());
+# endif
+ printf ("\n");
#endif
printf ("MPFR patches: %s\n\n", mpfr_get_patches ());