beta-0.89.2
[luatex.git] / source / libs / mpfr / mpfr-3.1.3 / src / buildopt.c
blobc44b97a3d36dcc6d9bb95a449a52123355beae12
1 /* buildopt.c -- functions giving information about options used during the
2 mpfr library compilation
4 Copyright 2009-2015 Free Software Foundation, Inc.
5 Contributed by the AriC and Caramel projects, INRIA.
7 This file is part of the GNU MPFR Library.
9 The GNU MPFR Library is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or (at your
12 option) any later version.
14 The GNU MPFR Library is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 License for more details.
19 You should have received a copy of the GNU Lesser General Public License
20 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
21 http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
22 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
24 #include "mpfr-impl.h"
26 int
27 mpfr_buildopt_tls_p (void)
29 #ifdef MPFR_USE_THREAD_SAFE
30 return 1;
31 #else
32 return 0;
33 #endif
36 int
37 mpfr_buildopt_decimal_p (void)
39 #ifdef MPFR_WANT_DECIMAL_FLOATS
40 return 1;
41 #else
42 return 0;
43 #endif
46 int
47 mpfr_buildopt_gmpinternals_p (void)
49 #if defined(MPFR_HAVE_GMP_IMPL) || defined(WANT_GMP_INTERNALS)
50 return 1;
51 #else
52 return 0;
53 #endif
56 const char *mpfr_buildopt_tune_case (void)
58 #ifdef MPFR_TUNE_CASE
59 return MPFR_TUNE_CASE;
60 #else
61 return "Generic thresholds";
62 #endif