summaryrefslogtreecommitdiff
path: root/log2.c
diff options
context:
space:
mode:
authorhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-13 14:50:13 +0000
committerhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-13 14:50:13 +0000
commit3035f62d87667e08ac5370bca1e47fe8f683c2e8 (patch)
treec92b2c9b03671e77b17f5ca89f731e53cdfaa1ce /log2.c
parentee574c97721b76618933ca6d5738f948e7abe1ec (diff)
downloadmpfr-3035f62d87667e08ac5370bca1e47fe8f683c2e8.tar.gz
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@851 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log2.c')
-rw-r--r--log2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/log2.c b/log2.c
index f4670d99e..a02484703 100644
--- a/log2.c
+++ b/log2.c
@@ -135,6 +135,7 @@ mpfr_const_log2(x, rnd_mode) mpfr_ptr x; mp_rnd_t rnd_mode;
int N, oldN, k, precx; mpz_t s, t, u;
precx = MPFR_PREC(x);
+ MPFR_CLEAR_FLAGS(x);
/* has stored value enough precision ? */
if (precx <= __mpfr_const_log2_prec) {