s390x: Update math: redirect roundeven function

After recent commit
447954a206
"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:
commit 3213ed770c
"Update math: redirect roundeven function"
This commit is contained in:
Stefan Liebler 2021-06-28 13:01:07 +02:00
parent c32c868ab8
commit 259a17cc98
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>