mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
powerpc: Avoid putting floating point values in memory [BZ #22189]
[BZ #22189] * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): (math_force_eval): Add powerpc version.
This commit is contained in:
parent
179dcdb7af
commit
e8dbd6a36d
@ -1,5 +1,9 @@
|
||||
2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
|
||||
|
||||
[BZ #22189]
|
||||
* sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
|
||||
(math_force_eval): Add powerpc version.
|
||||
|
||||
[BZ #22142]
|
||||
* stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
|
||||
-DBL_MAX.
|
||||
|
@ -23,6 +23,13 @@
|
||||
#include <ldsodefs.h>
|
||||
#include <dl-procinfo.h>
|
||||
#include <fenv_private.h>
|
||||
|
||||
/* Avoid putting floating point values in memory. */
|
||||
# define math_opt_barrier(x) \
|
||||
({ __typeof (x) __x = (x); __asm ("" : "+dwa" (__x)); __x; })
|
||||
# define math_force_eval(x) \
|
||||
({ __typeof (x) __x = (x); __asm __volatile__ ("" : : "dwa" (__x)); })
|
||||
|
||||
#include_next <math_private.h>
|
||||
|
||||
#if defined _ARCH_PWR9 && __HAVE_DISTINCT_FLOAT128
|
||||
|
Loading…
Reference in New Issue
Block a user