diff options
author | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-13 14:50:13 +0000 |
---|---|---|
committer | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-13 14:50:13 +0000 |
commit | 3035f62d87667e08ac5370bca1e47fe8f683c2e8 (patch) | |
tree | c92b2c9b03671e77b17f5ca89f731e53cdfaa1ce /log2.c | |
parent | ee574c97721b76618933ca6d5738f948e7abe1ec (diff) | |
download | mpfr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |