summaryrefslogtreecommitdiff
path: root/mpfr.h
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-01 16:25:53 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-01 16:25:53 +0000
commit2e31bf9622d8c9c587c5769ebbd3bcf114097498 (patch)
treea94f9800429e3f8944e7339b7d4ec6b1259c5dbc /mpfr.h
parent3171d816e5803bfbac0d7cbdd5aedb6cd47760f3 (diff)
downloadmpfr-2e31bf9622d8c9c587c5769ebbd3bcf114097498.tar.gz
replaced log(2.0) by LOG2 [first step in getting rid of math.h]
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@822 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.h')
-rw-r--r--mpfr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpfr.h b/mpfr.h
index 646db892d..11132f449 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -36,6 +36,10 @@ MA 02111-1307, USA. */
#define GMP_RNDU 2
#define GMP_RNDD 3
+/* Definition of constants */
+
+#define LOG2 0.69314718055994528622 /* log(2) rounded to zero on 53 bits */
+
/* Definitions of types and their semantics */
typedef unsigned long int mp_prec_t; /* easy to change if necessary */