summaryrefslogtreecommitdiff
path: root/exp2.c
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 12:09:08 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 12:09:08 +0000
commit8fd1dd5d668f105906d746783e67513e99ce449c (patch)
treed70ce367e33a16f44e102d971fed4b9701c68809 /exp2.c
parent28cee5c782162aaf468d9bd8464019169fcd8945 (diff)
downloadmpfr-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/exp2.c b/exp2.c
index 0c05e90e3..6760ec6af 100644
--- a/exp2.c
+++ b/exp2.c
@@ -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;
}