From 0407c9077e644c48e9670058b4031112b693988b Mon Sep 17 00:00:00 2001 From: pelissip Date: Fri, 16 Jul 2004 08:54:53 +0000 Subject: Likely some tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2940 280ebfd0-de03-0410-8827-d642c229c3f4 --- round_raw_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'round_raw_generic.c') diff --git a/round_raw_generic.c b/round_raw_generic.c index db316330c..7d0cddee5 100644 --- a/round_raw_generic.c +++ b/round_raw_generic.c @@ -177,7 +177,7 @@ mpfr_round_raw_generic(mp_limb_t *yp, mp_limb_t *xp, mp_prec_t xprec, if (use_inexp) /* rnd_mode == GMP_RNDZ and neg = 0 or 1 */ /* (neg != 0) ^ (rnd_mode != GMP_RNDZ)) ? 1 : -1);*/ - *inexp = (sb == 0) ? 0 : (2*neg-1); + *inexp = MPFR_UNLIKELY(sb == 0) ? 0 : (2*neg-1); if (flag) return 0; /*sb != 0 && rnd_mode != GMP_RNDZ;*/ MPN_COPY_INCR(yp, xp + xsize - nw, nw); @@ -189,7 +189,7 @@ mpfr_round_raw_generic(mp_limb_t *yp, mp_limb_t *xp, mp_prec_t xprec, /* rnd_mode = Away */ while (MPFR_UNLIKELY(sb == 0) && k > 0) sb = xp[--k]; - if (sb == 0) + if (MPFR_UNLIKELY(sb == 0)) { /* sb = 0 && rnd_mode != GMP_RNDZ */ if (use_inexp) -- cgit v1.2.1