diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/round_prec.c | 2 | ||||
-rw-r--r-- | src/set_exp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/round_prec.c b/src/round_prec.c index acce15af0..61dc60786 100644 --- a/src/round_prec.c +++ b/src/round_prec.c @@ -61,7 +61,7 @@ mpfr_prec_round (mpfr_ptr x, mpfr_prec_t prec, mpfr_rnd_t rnd_mode) /* Get the number of limbs from the precision. (Compatible with all allocation methods) */ ow = MPFR_LIMB_SIZE (x); - if (nw > ow) + if (MPFR_UNLIKELY (nw > ow)) { /* FIXME: Variable can't be created using custom allocation, MPFR_DECL_INIT or GROUP_ALLOC: How to detect? */ diff --git a/src/set_exp.c b/src/set_exp.c index ea54a6698..22322ea32 100644 --- a/src/set_exp.c +++ b/src/set_exp.c @@ -25,7 +25,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., int mpfr_set_exp (mpfr_ptr x, mpfr_exp_t exponent) { - if (exponent >= __gmpfr_emin && exponent <= __gmpfr_emax) + if (MPFR_LIKELY (exponent >= __gmpfr_emin && exponent <= __gmpfr_emax)) { MPFR_EXP(x) = exponent; /* do not use MPFR_SET_EXP of course... */ return 0; |