olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh977887.patch

ce426f
commit 4c60cb0c8329dd498e9cce3735e5ee6212ad28f4
ce426f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
ce426f
Date:   Wed Jun 5 13:56:19 2013 +0530
ce426f
ce426f
    Skip modifying exception mask and flags in SET_RESTORE_ROUND_53BIT
ce426f
    
ce426f
    We only need to set/restore rounding mode to ensure correct
ce426f
    computation for non-default rounding modes.
ce426f
ce426f
diff --git glibc-2.17-c758a686/sysdeps/generic/math_private.h glibc-2.17-c758a686/sysdeps/generic/math_private.h
ce426f
index 9d6ecad..e98360d 100644
ce426f
--- glibc-2.17-c758a686/sysdeps/generic/math_private.h
ce426f
+++ glibc-2.17-c758a686/sysdeps/generic/math_private.h
ce426f
@@ -446,8 +446,8 @@ default_libc_feholdexcept_setround (fenv_t *e, int r)
ce426f
 # define libc_feholdexcept_setroundl default_libc_feholdexcept_setround
ce426f
 #endif
ce426f
 
ce426f
-#ifndef libc_feholdexcept_setround_53bit
ce426f
-# define libc_feholdexcept_setround_53bit libc_feholdexcept_setround
ce426f
+#ifndef libc_feholdsetround_53bit
ce426f
+# define libc_feholdsetround_53bit libc_feholdsetround
ce426f
 #endif
ce426f
 
ce426f
 #ifndef libc_fetestexcept
ce426f
@@ -492,8 +492,8 @@ default_libc_feupdateenv (fenv_t *e)
ce426f
 # define libc_feupdateenvl default_libc_feupdateenv
ce426f
 #endif
ce426f
 
ce426f
-#ifndef libc_feupdateenv_53bit
ce426f
-# define libc_feupdateenv_53bit libc_feupdateenv
ce426f
+#ifndef libc_feresetround_53bit
ce426f
+# define libc_feresetround_53bit libc_feresetround
ce426f
 #endif
ce426f
 
ce426f
 static __always_inline int
ce426f
@@ -580,8 +580,8 @@ default_libc_feupdateenv_test (fenv_t *e, int ex)
ce426f
 
ce426f
 /* Like SET_RESTORE_ROUND, but also set rounding precision to 53 bits.  */
ce426f
 #define SET_RESTORE_ROUND_53BIT(RM) \
ce426f
-  fenv_t __libc_save_rm __attribute__((cleanup(libc_feupdateenv_53bit))); \
ce426f
-  libc_feholdexcept_setround_53bit (&__libc_save_rm, (RM))
ce426f
+  fenv_t __libc_save_rm __attribute__((cleanup(libc_feresetround_53bit))); \
ce426f
+  libc_feholdsetround_53bit (&__libc_save_rm, (RM))
ce426f
 
ce426f
 #define __nan(str) \
ce426f
   (__builtin_constant_p (str) && str[0] == '\0' ? NAN : __nan (str))