[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r5535 - in glibc-package/branches/eglibc-2.17/debian: . patches/i386



Author: adconrad
Date: 2013-04-18 05:10:08 +0000 (Thu, 18 Apr 2013)
New Revision: 5535

Added:
   glibc-package/branches/eglibc-2.17/debian/patches/i386/cvs-simd-exception.diff
Modified:
   glibc-package/branches/eglibc-2.17/debian/changelog
Log:
debian/patches/i386/cvs-simd-exception.diff: Pull patch from upstream
to fix a performance regression in i386 SIMD exceptions (LP: #1157244)

Modified: glibc-package/branches/eglibc-2.17/debian/changelog
===================================================================
--- glibc-package/branches/eglibc-2.17/debian/changelog	2013-04-18 05:06:14 UTC (rev 5534)
+++ glibc-package/branches/eglibc-2.17/debian/changelog	2013-04-18 05:10:08 UTC (rev 5535)
@@ -26,6 +26,8 @@
     avoid warnings when the awk alternative points to gawk (LP: #1156923)
   * debian/patches/any/submitted-setfsid-wur.diff: Drop __wur from setfsuid 
     and setfsgid functions to avoid -Werror=unused-result (Closes: #701422)
+  * debian/patches/i386/cvs-simd-exception.diff: Pull patch from upstream
+    to fix a performance regression in i386 SIMD exceptions (LP: #1157244)
 
  -- Adam Conrad <adconrad@0c3.net>  Thu, 07 Feb 2013 00:44:54 -0700
 

Added: glibc-package/branches/eglibc-2.17/debian/patches/i386/cvs-simd-exception.diff
===================================================================
--- glibc-package/branches/eglibc-2.17/debian/patches/i386/cvs-simd-exception.diff	                        (rev 0)
+++ glibc-package/branches/eglibc-2.17/debian/patches/i386/cvs-simd-exception.diff	2013-04-18 05:10:08 UTC (rev 5535)
@@ -0,0 +1,21 @@
+commit 0b57daebab36f59af1d2a02616ee636a7b13ba12
+Author: Siddhesh Poyarekar <siddhesh@redhat.com>
+Date:   Fri Jan 18 14:16:25 2013 +0530
+
+    Fix application of the exception mask
+    
+    Fixes BZ #14496.
+
+diff --git a/sysdeps/i386/fpu/fenv_private.h b/sysdeps/i386/fpu/fenv_private.h
+index 03f4c97..1f8336c 100644
+--- a/sysdeps/i386/fpu/fenv_private.h
++++ b/sysdeps/i386/fpu/fenv_private.h
+@@ -176,7 +176,7 @@ libc_feupdateenv_test_sse (fenv_t *e, int ex)
+ 
+   /* Raise SIGFPE for any new exceptions since the hold.  Expect that
+      the normal environment has all exceptions masked.  */
+-  if (__builtin_expect ((old_mxcsr >> 7) & cur_ex, 0))
++  if (__glibc_unlikely (~(old_mxcsr >> 7) & cur_ex))
+     __feraiseexcept (cur_ex);
+ 
+   /* Test for exceptions raised since the hold.  */


Reply to: