diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-07-06 12:04:08 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-07-06 12:04:08 +0000 |
commit | 92f1c72e7944fe3d58afb5da275a50063007f053 (patch) | |
tree | 8be7a7aca261d453a105c10ce1a3b24c5112c3b7 /mul_2ui.c | |
parent | 29234924c13b2fb1e251cf0bbd0e4ba290d515c7 (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) ) { |