summaryrefslogtreecommitdiff
path: root/pow_ui.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-05 16:18:16 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-05 16:18:16 +0000
commitd406c7c3f07cacb170533149e9319c334062792b (patch)
treeda17b87f0205cc16561cf4d73f95ffc893e0385d /pow_ui.c
parent3e4ced245d9e603cfc806e64ab56b9b2b7223287 (diff)
downloadmpfr-d406c7c3f07cacb170533149e9319c334062792b.tar.gz
Fix some bugs (Use MPFR_ASSERT(1) instead of MPFR_ASSERT(0))
Optimize swap.c and copysign.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2536 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow_ui.c')
-rw-r--r--pow_ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pow_ui.c b/pow_ui.c
index 4fd4bb909..7648c34f0 100644
--- a/pow_ui.c
+++ b/pow_ui.c
@@ -64,7 +64,7 @@ mpfr_pow_ui (mpfr_ptr x, mpfr_srcptr y, unsigned long int n, mp_rnd_t rnd)
MPFR_RET(0);
}
else
- MPFR_ASSERTN(1);
+ MPFR_ASSERTN(0);
}
else if (MPFR_UNLIKELY( n <= 1))
{
@@ -75,7 +75,8 @@ mpfr_pow_ui (mpfr_ptr x, mpfr_srcptr y, unsigned long int n, mp_rnd_t rnd)
/* y^1 = y */
return mpfr_set(x, y, rnd);
}
-
+ /* MPFR_CLEAR_FLAGS useless due to mpfr_set */
+
mpfr_save_emin_emax ();
mpfr_init (res);