Mark ZERO inputs to __mul as unlikely on powerpc

Syncs up with generic code.
This commit is contained in:
Siddhesh Poyarekar 2013-02-21 12:17:29 +05:30
parent 97ccb9d55a
commit 4c7a4263af
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2013-02-21 Siddhesh Poyarekar <siddhesh@redhat.com>
* sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
or Y being zero as being unlikely.
* sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
Likewise.
2013-02-20 Carlos O'Donell <carlos@redhat.com>
* manual/nss.texi (System Databases and Name Service Switch):

View File

@ -599,7 +599,7 @@ __mul (const mp_no *x, const mp_no *y, mp_no *z, int p)
double u, zk, zk2;
/* Is z=0? */
if (X[0] * Y[0] == ZERO)
if (__glibc_unlikely (X[0] * Y[0] == ZERO))
{
Z[0] = ZERO;
return;

View File

@ -599,7 +599,7 @@ __mul (const mp_no *x, const mp_no *y, mp_no *z, int p)
double u, zk, zk2;
/* Is z=0? */
if (X[0] * Y[0] == ZERO)
if (__glibc_unlikely (X[0] * Y[0] == ZERO))
{
Z[0] = ZERO;
return;