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