summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-11 13:06:53 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-04-11 13:06:53 +0000
commit992fd7f44f50b6584ae807f718897bf68e3fb00d (patch)
treef2e97139c70fc0f95f8b30939c1a5c95b28a6df8
parent2d8f21bd4bca0feab54e14ea5c8991ffb553b70c (diff)
downloadmpfr-992fd7f44f50b6584ae807f718897bf68e3fb00d.tar.gz
[tests/tversion.c] Output the sizes of long and intmax_t, and
"Generic ABI code" info (MPFR_GENERIC_ABI). (merged changesets r12447,12575 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12577 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tversion.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tversion.c b/tests/tversion.c
index e73f47be6..855199c65 100644
--- a/tests/tversion.c
+++ b/tests/tversion.c
@@ -326,6 +326,16 @@ main (void)
/**************************** ABI information ****************************/
+ printf ("[tversion] sizeof(long) = %ld"
+#if defined(_MPFR_H_HAVE_INTMAX_T)
+ ", sizeof(intmax_t) = %ld"
+#endif
+ "\n", (long) sizeof(long)
+#if defined(_MPFR_H_HAVE_INTMAX_T)
+ , (long) sizeof(intmax_t)
+#endif
+ );
+
if (mp_bits_per_limb != GMP_NUMB_BITS)
{
printf ("ERROR! mp_bits_per_limb != GMP_NUMB_BITS (%ld vs %ld)\n",
@@ -369,6 +379,14 @@ main (void)
printf ("[tversion] Max exponent" RANGE,
(mpfr_eexp_t) MPFR_EMIN_MIN, (mpfr_eexp_t) MPFR_EMAX_MAX);
+ printf ("[tversion] Generic ABI code: "
+#if defined(MPFR_GENERIC_ABI)
+ "yes"
+#else
+ "no"
+#endif
+ "\n");
+
/************************** Runtime information **************************/
if (locale != NULL)