summaryrefslogtreecommitdiff
path: root/set_ui.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-19 10:01:34 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-19 10:01:34 +0000
commit185dd575ae55b859e07c0ef7765cc0afd258079a (patch)
tree1921ab7720919687df9d25c74fe543555079eff1 /set_ui.c
parentafa09509c72f5158b2e2f8823f999d0a370f869d (diff)
downloadmpfr-185dd575ae55b859e07c0ef7765cc0afd258079a.tar.gz
Optimization of mpfr_mul.
Tiny optimization of mpfr_pow (The case y=0 has been put inside the MPFR_ARE_SINGULAR block). Tiny optimisation of mpfr_set_ui. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2554 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_ui.c')
-rw-r--r--set_ui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/set_ui.c b/set_ui.c
index c148a9f07..bbf6438b6 100644
--- a/set_ui.c
+++ b/set_ui.c
@@ -30,10 +30,10 @@ mpfr_set_ui (mpfr_ptr x, unsigned long i, mp_rnd_t rnd_mode)
{
int inex;
+ MPFR_SET_POS(x);
if (i == 0)
{
MPFR_SET_ZERO(x);
- MPFR_SET_POS(x);
MPFR_RET(0);
}
else
@@ -76,8 +76,5 @@ mpfr_set_ui (mpfr_ptr x, unsigned long i, mp_rnd_t rnd_mode)
}
}
}
-
- MPFR_SET_POS(x);
-
MPFR_RET(inex);
}