summaryrefslogtreecommitdiff
path: root/src/const_log2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/const_log2.c')
-rw-r--r--src/const_log2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/const_log2.c b/src/const_log2.c
index 2d94bdb02..6255396b3 100644
--- a/src/const_log2.c
+++ b/src/const_log2.c
@@ -32,6 +32,16 @@ MPFR_DECL_INIT_CACHE(__gmpfr_logging_log2, mpfr_const_log2_internal);
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 */
#undef mpfr_const_log2
int