summaryrefslogtreecommitdiff
path: root/mpfr.h
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-03 14:59:39 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-03 14:59:39 +0000
commit322eedfed5269686a73496b2d44e0e4fdc7acd66 (patch)
tree3da132a5eac62affbe1c30484fae45db5d8d34c2 /mpfr.h
parentdd38a571d3b1e52cad19346b0ab7ecc54b2b3f7c (diff)
downloadmpfr-322eedfed5269686a73496b2d44e0e4fdc7acd66.tar.gz
Change user interface for mpfr_const_pi, mpfr_const_log2 and
mpfr_const_euler. No more access to the cache itself. Create dummy functions which call the cache, and rename old functions to "_internal". Internally, it doesn't change at all (You still call directly the cache instead of the dummy function which calls the cache). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3271 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.h')
-rw-r--r--mpfr.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/mpfr.h b/mpfr.h
index 0e3c8002b..9f776a56e 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -495,11 +495,6 @@ int mpfr_strtofr _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, char **,
#define mpfr_zero_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_ZERO)
#define mpfr_sgn(_x) (mpfr_zero_p(_x) ? 0 : MPFR_SIGN(_x))
-/* Theses consts are cached. */
-#define mpfr_const_pi(_d,_r) mpfr_cache(_d, __gmpfr_cache_const_pi, _r)
-#define mpfr_const_log2(_d,_r) mpfr_cache(_d, __gmpfr_cache_const_log2, _r)
-#define mpfr_const_euler(_d,_r) mpfr_cache(_d, __gmpfr_cache_const_euler, _r)
-
/* Prevent from using mpfr_get_e{min,max} as lvalues */
#define mpfr_get_prec(_x) ((_x)->_mpfr_prec + 0)
#define mpfr_get_exp(_x) ((_x)->_mpfr_exp + 0)