summaryrefslogtreecommitdiff
path: root/setmin.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-07-26 15:52:58 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-07-26 15:52:58 +0000
commit49c11f49544fd4ee9b0f88f4bdc742a86583852e (patch)
tree1bfda22c1dad2721f7a684c26d9bbfe33ebc9cbd /setmin.c
parent705a965275388c9cbd0491867e3c1138325c3af0 (diff)
downloadmpfr-49c11f49544fd4ee9b0f88f4bdc742a86583852e.tar.gz
Prototype of mpfr_setmax and mpfr_setmin changed (exponent given).
In mpfr_exp for x ~= 0, add_one_ulp and sub_one_ulp are no longer used (sub_one_ulp was incorrect). These cases should now be faster. Small fix in mpfr_nextabove, mpfr_nextbelow and mpfr_nexttoward. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2002 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'setmin.c')
-rw-r--r--setmin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setmin.c b/setmin.c
index 42eb30693..f4b0ca2b6 100644
--- a/setmin.c
+++ b/setmin.c
@@ -27,12 +27,12 @@ MA 02111-1307, USA. */
/* Note: the flags are not cleared and the current sign is kept. */
-void mpfr_setmin (mpfr_ptr x)
+void mpfr_setmin (mpfr_ptr x, mp_exp_t e)
{
mp_size_t xn;
mp_limb_t *xp;
- MPFR_EXP(x) = __mpfr_emin;
+ MPFR_EXP(x) = e;
xn = (MPFR_PREC(x) - 1) / BITS_PER_MP_LIMB;
xp = MPFR_MANT(x);
xp[xn] = MPFR_LIMB_HIGHBIT;