diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-11-19 10:01:34 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-11-19 10:01:34 +0000 |
commit | 185dd575ae55b859e07c0ef7765cc0afd258079a (patch) | |
tree | 1921ab7720919687df9d25c74fe543555079eff1 /set_ui.c | |
parent | afa09509c72f5158b2e2f8823f999d0a370f869d (diff) | |
download | mpfr-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } |