summaryrefslogtreecommitdiff
path: root/mul_2ui.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-07-06 12:04:08 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-07-06 12:04:08 +0000
commit92f1c72e7944fe3d58afb5da275a50063007f053 (patch)
tree8be7a7aca261d453a105c10ce1a3b24c5112c3b7 /mul_2ui.c
parent29234924c13b2fb1e251cf0bbd0e4ba290d515c7 (diff)
downloadmpfr-92f1c72e7944fe3d58afb5da275a50063007f053.tar.gz
Likely a test to optimize when dest and src are the same
(which is very likely inside MPFR). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2930 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mul_2ui.c')
-rw-r--r--mul_2ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mul_2ui.c b/mul_2ui.c
index f8de72d74..106ebdb9d 100644
--- a/mul_2ui.c
+++ b/mul_2ui.c
@@ -26,7 +26,7 @@ mpfr_mul_2ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int n, mp_rnd_t rnd_mode)
{
int inexact;
- inexact = y != x ? mpfr_set (y, x, rnd_mode) : 0;
+ inexact = MPFR_UNLIKELY(y != x) ? mpfr_set (y, x, rnd_mode) : 0;
if (MPFR_LIKELY( MPFR_IS_PURE_FP(y)) )
{