diff options
author | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 12:09:08 +0000 |
---|---|---|
committer | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 12:09:08 +0000 |
commit | 8fd1dd5d668f105906d746783e67513e99ce449c (patch) | |
tree | d70ce367e33a16f44e102d971fed4b9701c68809 /exp2.c | |
parent | 28cee5c782162aaf468d9bd8464019169fcd8945 (diff) | |
download | mpfr-8fd1dd5d668f105906d746783e67513e99ce449c.tar.gz |
ajout du flag inexact
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1293 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp2.c')
-rw-r--r-- | exp2.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -64,6 +64,8 @@ mpfr_exp2 (y, x, rnd_mode) #endif { + int inexact =0; + if (MPFR_IS_NAN(x)) { MPFR_SET_NAN(y); @@ -138,10 +140,10 @@ mpfr_exp2 (y, x, rnd_mode) } while (!mpfr_can_round(t,err,GMP_RNDN,rnd_mode,Ny)); - mpfr_set(y,t,rnd_mode); + inexact = mpfr_set(y,t,rnd_mode); mpfr_clear(t); mpfr_clear(te); } - return 1; + return inexact; } |