mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
s390x: Update math: redirect roundeven function
After recent commit447954a206
"math: redirect roundeven function", building on s390x fails with: Error: symbol `__roundevenl' is already defined Similar to aarch64/riscv fix, this patch redirects target specific functions for s390x: commit3213ed770c
"Update math: redirect roundeven function"
This commit is contained in:
parent
c32c868ab8
commit
259a17cc98
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
||||||
|
# define NO_MATH_REDIRECT
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
# include <libm-alias-double.h>
|
# include <libm-alias-double.h>
|
||||||
|
|
||||||
@ -31,7 +32,6 @@ __roundeven (double x)
|
|||||||
__asm__ ("fidbra %0,4,%1,4" : "=f" (y) : "f" (x));
|
__asm__ ("fidbra %0,4,%1,4" : "=f" (y) : "f" (x));
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
hidden_def (__roundeven)
|
|
||||||
libm_alias_double (__roundeven, roundeven)
|
libm_alias_double (__roundeven, roundeven)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
||||||
|
# define NO_MATH_REDIRECT
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
# include <libm-alias-float.h>
|
# include <libm-alias-float.h>
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
|
||||||
|
# define NO_MATH_REDIRECT
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
# include <math_private.h>
|
# include <math_private.h>
|
||||||
# include <libm-alias-ldouble.h>
|
# include <libm-alias-ldouble.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user