summaryrefslogtreecommitdiff
path: root/src/free_cache.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-23 22:02:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-23 22:02:48 +0000
commit8877e378db3b51289f58787ff0d4ebfaab647561 (patch)
tree12bfa03b4e06802910f3ef15400ff96f450ef85d /src/free_cache.c
parent2107bfbc19c3ea9b60adf575eb528e4e236ca8fe (diff)
downloadmpfr-8877e378db3b51289f58787ff0d4ebfaab647561.tar.gz
Minor comment & coding style corrections on r10327.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10328 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/free_cache.c')
-rw-r--r--src/free_cache.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/free_cache.c b/src/free_cache.c
index 5ec926dd5..76fad6c80 100644
--- a/src/free_cache.c
+++ b/src/free_cache.c
@@ -88,43 +88,44 @@ mpfr_free_cache (void)
#endif
#if !defined (WANT_SHARED_CACHE)
-#ifndef MPFR_USE_LOGGING
+# ifndef MPFR_USE_LOGGING
mpfr_clear_cache (__gmpfr_cache_const_pi);
mpfr_clear_cache (__gmpfr_cache_const_log2);
-#else
+# else
mpfr_clear_cache (__gmpfr_normal_pi);
mpfr_clear_cache (__gmpfr_normal_log2);
mpfr_clear_cache (__gmpfr_logging_pi);
mpfr_clear_cache (__gmpfr_logging_log2);
-#endif
+# endif
mpfr_clear_cache (__gmpfr_cache_const_euler);
mpfr_clear_cache (__gmpfr_cache_const_catalan);
#endif
}
void
-mpfr_free_cache2(mpfr_free_cache_t way)
+mpfr_free_cache2 (mpfr_free_cache_t way)
{
- switch (way) {
- case MPFR_FREE_LOCAL_CACHE:
- mpfr_free_cache();
- break;
- case MPFR_FREE_GLOBAL_CACHE:
+ switch (way)
+ {
+ case MPFR_FREE_LOCAL_CACHE:
+ mpfr_free_cache ();
+ break;
+ case MPFR_FREE_GLOBAL_CACHE:
#if defined (WANT_SHARED_CACHE)
-#ifndef MPFR_USE_LOGGING
- mpfr_clear_cache (__gmpfr_cache_const_pi);
- mpfr_clear_cache (__gmpfr_cache_const_log2);
-#else
- mpfr_clear_cache (__gmpfr_normal_pi);
- mpfr_clear_cache (__gmpfr_normal_log2);
- mpfr_clear_cache (__gmpfr_logging_pi);
- mpfr_clear_cache (__gmpfr_logging_log2);
-#endif
- mpfr_clear_cache (__gmpfr_cache_const_euler);
- mpfr_clear_cache (__gmpfr_cache_const_catalan);
-#endif
- break;
- default:
- break;
- }
+# ifndef MPFR_USE_LOGGING
+ mpfr_clear_cache (__gmpfr_cache_const_pi);
+ mpfr_clear_cache (__gmpfr_cache_const_log2);
+# else
+ mpfr_clear_cache (__gmpfr_normal_pi);
+ mpfr_clear_cache (__gmpfr_normal_log2);
+ mpfr_clear_cache (__gmpfr_logging_pi);
+ mpfr_clear_cache (__gmpfr_logging_log2);
+# endif
+ mpfr_clear_cache (__gmpfr_cache_const_euler);
+ mpfr_clear_cache (__gmpfr_cache_const_catalan);
+# endif
+ break;
+ default:
+ break;
+ }
}