summaryrefslogtreecommitdiff
path: root/src/eint.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-02-09 01:17:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-02-09 01:17:01 +0000
commit0d6c72a5bcc72cb45be10a9b15a05feaee97f19f (patch)
tree598f3896bdd4d56b322f686f398943b06ae9b701 /src/eint.c
parente15cb2d2c8ecf9bc6c48cc621fd5cc92bdd179e5 (diff)
downloadmpfr-0d6c72a5bcc72cb45be10a9b15a05feaee97f19f.tar.gz
[src/eint.c] Code simplification.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10000 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/eint.c')
-rw-r--r--src/eint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eint.c b/src/eint.c
index 4d288454a..a32d71a49 100644
--- a/src/eint.c
+++ b/src/eint.c
@@ -340,7 +340,7 @@ mpfr_eint (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd)
MPFR_ZIV_FREE (loop); /* Free the ZivLoop Controller */
/* Set y to the computed value */
- inex = (MPFR_IS_POS(x)) ? mpfr_set (y, tmp, rnd) : mpfr_neg (y, tmp, rnd);
+ inex = mpfr_set4 (y, tmp, rnd, MPFR_SIGN (x) * MPFR_SIGN (tmp));
mpfr_clear (tmp);
mpfr_clear (ump);