diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-09-20 00:31:26 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-09-20 00:31:26 +0000 |
commit | 7ee902b4901f1dda5f1afbffa98e1360a7e53e4f (patch) | |
tree | fd79c8eedd23bb0485e53e042e7f3848d88b9d34 | |
parent | 52914d12e4b18ac54bcc139d3cd70385c51a2600 (diff) | |
download | mpfr-7ee902b4901f1dda5f1afbffa98e1360a7e53e4f.tar.gz |
Renamed mpfr_buildopt_internals_p to mpfr_buildopt_gmpinternals_p.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7869 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | doc/mpfr.texi | 4 | ||||
-rw-r--r-- | src/buildopt.c | 2 | ||||
-rw-r--r-- | src/mpfr.h | 6 | ||||
-rw-r--r-- | tests/tbuildopt.c | 12 |
5 files changed, 13 insertions, 13 deletions
@@ -43,7 +43,7 @@ Changes from versions 3.0.* to version 3.1.0: - The --with-gmp-build configure option can now be used when the GMP source directory and the GMP build directory are different (without having to copy header files manually as before). -- New functions mpfr_buildopt_internals_p, mpfr_buildopt_tune_case, +- New functions mpfr_buildopt_gmpinternals_p, mpfr_buildopt_tune_case, mpfr_frexp, mpfr_grandom and mpfr_z_sub. - New division-by-zero exception (flag) and associated functions. - The mpfr.h header can be included several times, while still supporting diff --git a/doc/mpfr.texi b/doc/mpfr.texi index 8bdb75842..84c577824 100644 --- a/doc/mpfr.texi +++ b/doc/mpfr.texi @@ -2783,7 +2783,7 @@ is, MPFR was built with the @code{--enable-decimal-float} configure option), return zero otherwise. @end deftypefun -@deftypefun int mpfr_buildopt_internals_p (void) +@deftypefun int mpfr_buildopt_gmpinternals_p (void) Return a non-zero value if MPFR was compiled with GMP internals (that is, MPFR was built with either @code{--with-gmp-build} or @code{--enable-gmp-internals} configure option), return zero otherwise. @@ -3279,7 +3279,7 @@ MPFR version. @item @code{mpfr_buildopt_decimal_p} and @code{mpfr_buildopt_tls_p} in MPFR 3.0. -@item @code{mpfr_buildopt_internals_p} and @code{mpfr_buildopt_tune_case} +@item @code{mpfr_buildopt_gmpinternals_p} and @code{mpfr_buildopt_tune_case} in MPFR 3.1. @item @code{mpfr_clear_divby0} in MPFR 3.1 (new division-by-zero exception). diff --git a/src/buildopt.c b/src/buildopt.c index 7fa5e3090..c2e150b24 100644 --- a/src/buildopt.c +++ b/src/buildopt.c @@ -44,7 +44,7 @@ mpfr_buildopt_decimal_p (void) } int -mpfr_buildopt_internals_p (void) +mpfr_buildopt_gmpinternals_p (void) { #if defined(MPFR_HAVE_GMP_IMPL) || defined(WANT_GMP_INTERNALS) return 1; diff --git a/src/mpfr.h b/src/mpfr.h index 38fb346f6..5d118c44e 100644 --- a/src/mpfr.h +++ b/src/mpfr.h @@ -266,9 +266,9 @@ extern "C" { __MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void)); __MPFR_DECLSPEC __gmp_const char * mpfr_get_patches _MPFR_PROTO ((void)); -__MPFR_DECLSPEC int mpfr_buildopt_tls_p _MPFR_PROTO ((void)); -__MPFR_DECLSPEC int mpfr_buildopt_decimal_p _MPFR_PROTO ((void)); -__MPFR_DECLSPEC int mpfr_buildopt_internals_p _MPFR_PROTO ((void)); +__MPFR_DECLSPEC int mpfr_buildopt_tls_p _MPFR_PROTO ((void)); +__MPFR_DECLSPEC int mpfr_buildopt_decimal_p _MPFR_PROTO ((void)); +__MPFR_DECLSPEC int mpfr_buildopt_gmpinternals_p _MPFR_PROTO ((void)); __MPFR_DECLSPEC __gmp_const char * mpfr_buildopt_tune_case _MPFR_PROTO ((void)); __MPFR_DECLSPEC mpfr_exp_t mpfr_get_emin _MPFR_PROTO ((void)); diff --git a/tests/tbuildopt.c b/tests/tbuildopt.c index 1662511d3..6cbcbc27b 100644 --- a/tests/tbuildopt.c +++ b/tests/tbuildopt.c @@ -61,18 +61,18 @@ check_decimal_p (void) } static void -check_internals_p (void) +check_gmpinternals_p (void) { #if defined(MPFR_HAVE_GMP_IMPL) || defined(WANT_GMP_INTERNALS) - if (!mpfr_buildopt_internals_p()) + if (!mpfr_buildopt_gmpinternals_p()) { - printf ("Error: mpfr_buildopt_internals_p should return true\n"); + printf ("Error: mpfr_buildopt_gmpinternals_p should return true\n"); exit (1); } #else - if (mpfr_buildopt_internals_p()) + if (mpfr_buildopt_gmpinternals_p()) { - printf ("Error: mpfr_buildopt_internals_p should return false\n"); + printf ("Error: mpfr_buildopt_gmpinternals_p should return false\n"); exit (1); } #endif @@ -83,7 +83,7 @@ main (void) { check_tls_p(); check_decimal_p(); - check_internals_p(); + check_gmpinternals_p(); return 0; } |