summaryrefslogtreecommitdiff
path: root/src/set_d.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-24 02:52:15 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-24 02:52:15 +0000
commit094d69655fc52bf1e3957a000287a138cac674c6 (patch)
tree254e5c87ca571d47cd8b72db4ee8f4f8d407a2f0 /src/set_d.c
parent902c4ca320ec4c4977d2489a942901f556e67659 (diff)
downloadmpfr-094d69655fc52bf1e3957a000287a138cac674c6.tar.gz
Optimization: likely / unlikely, etc. (patch by Patrick PĂ©lissier).
Coding style. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8891 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/set_d.c')
-rw-r--r--src/set_d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/set_d.c b/src/set_d.c
index d81191d10..e8128965c 100644
--- a/src/set_d.c
+++ b/src/set_d.c
@@ -232,9 +232,9 @@ mpfr_set_d (mpfr_ptr r, double d, mpfr_rnd_t rnd_mode)
count_leading_zeros (cnt, tmpmant[i - 1]);
- if (MPFR_LIKELY(cnt != 0))
+ if (MPFR_UNLIKELY(cnt != 0))
mpn_lshift (tmpmant + k, tmpmant, i, cnt);
- else if (k != 0)
+ else if (MPFR_UNLIKELY (k != 0))
MPN_COPY (tmpmant + k, tmpmant, i);
if (MPFR_UNLIKELY(k != 0))