diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-03 15:59:28 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-03 15:59:28 +0000 |
commit | bd9f8973db7aba47dfbf79556ec3b9078a963db2 (patch) | |
tree | c26016828b819e82bda55c28d30f2a55fe44a649 /set_dfl_prec.c | |
parent | 6c5ef86d31371bfd2cf5aee20d54b98833ed5b85 (diff) | |
download | mpfr-bd9f8973db7aba47dfbf79556ec3b9078a963db2.tar.gz |
Add option "thread-safe" to configure.
Limited to use with GCC and ICC (using extension __thread).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3274 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_dfl_prec.c')
-rw-r--r-- | set_dfl_prec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/set_dfl_prec.c b/set_dfl_prec.c index 8cf31a102..ca2431308 100644 --- a/set_dfl_prec.c +++ b/set_dfl_prec.c @@ -1,6 +1,6 @@ /* mpfr_set_default_prec, mpfr_get_default_prec -- set/get default precision -Copyright 1999, 2000, 2001, 2004 Free Software Foundation, Inc. +Copyright 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. This file is part of the MPFR Library. @@ -22,12 +22,13 @@ MA 02111-1307, USA. */ #include "mpfr-impl.h" /* default is IEEE double precision, i.e. 53 bits */ -mp_prec_t __gmpfr_default_fp_bit_precision = IEEE_DBL_MANT_DIG; +mp_prec_t MPFR_THREAD_ATTR __gmpfr_default_fp_bit_precision \ + = IEEE_DBL_MANT_DIG; void mpfr_set_default_prec (mp_prec_t prec) { - MPFR_ASSERTN(prec >= MPFR_PREC_MIN && prec <= MPFR_PREC_MAX); + MPFR_ASSERTN (prec >= MPFR_PREC_MIN && prec <= MPFR_PREC_MAX); __gmpfr_default_fp_bit_precision = prec; } |