diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/const_log2.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/const_log2.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/const_log2.c b/Build/source/libs/mpfr/mpfr-src/src/const_log2.c index 7c634e9d7cf..8496d2d58a3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/const_log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/const_log2.c @@ -1,7 +1,7 @@ /* mpfr_const_log2 -- compute natural logarithm of 2 -Copyright 1999, 2001-2015 Free Software Foundation, Inc. -Contributed by the AriC and Caramel projects, INRIA. +Copyright 1999, 2001-2016 Free Software Foundation, Inc. +Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -29,7 +29,17 @@ MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_log2, mpfr_const_log2_internal); #else MPFR_DECL_INIT_CACHE(__gmpfr_normal_log2, mpfr_const_log2_internal); MPFR_DECL_INIT_CACHE(__gmpfr_logging_log2, mpfr_const_log2_internal); -mpfr_cache_ptr MPFR_THREAD_ATTR __gmpfr_cache_const_log2 = __gmpfr_normal_log2; +MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_log2 = __gmpfr_normal_log2; +#endif + +#ifdef MPFR_WIN_THREAD_SAFE_DLL +# ifndef MPFR_USE_LOGGING +mpfr_cache_t * __gmpfr_cache_const_log2_f() { return &__gmpfr_cache_const_log2; } +# else +mpfr_cache_t * __gmpfr_normal_log2_f() { return &__gmpfr_normal_log2; } +mpfr_cache_t * __gmpfr_logging_log2_f() { return &__gmpfr_logging_log2; } +mpfr_cache_ptr * __gmpfr_cache_const_log2_f() { return &__gmpfr_cache_const_log2; } +# endif #endif /* Set User interface */ |