]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark ZERO inputs to __mul as unlikely on powerpc
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 21 Feb 2013 06:47:29 +0000 (12:17 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 21 Feb 2013 06:47:29 +0000 (12:17 +0530)
Syncs up with generic code.

ChangeLog
sysdeps/powerpc/powerpc32/power4/fpu/mpa.c
sysdeps/powerpc/powerpc64/power4/fpu/mpa.c

index 5d2a885a8126d1610aa0893453d61d8647a4b079..fa98152d6d3d9a273540e3700511171ba6bed87c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index be357a63af1f453a8aba84a8f5bcaff492b9094e..f4500df629a25aa6c5ea7700a4ddbb1775c66fe4 100644 (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;
index be357a63af1f453a8aba84a8f5bcaff492b9094e..f4500df629a25aa6c5ea7700a4ddbb1775c66fe4 100644 (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;