about summary refs log tree commit diff
path: root/sysdeps/aarch64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-06-23 13:29:41 -0700
committerSunil K Pandey <skpgkp2@gmail.com>2022-09-29 13:15:43 -0700
commit224c17c70b6b3a12428d30778f1100770717956b (patch)
tree60c5c8afbefc76438f93e937a1d067e43187f71c /sysdeps/aarch64
parent6e6e51a1a27c0c315187569b41badc41c8f40afa (diff)
downloadglibc-224c17c70b6b3a12428d30778f1100770717956b.tar.gz
glibc-224c17c70b6b3a12428d30778f1100770717956b.tar.xz
glibc-224c17c70b6b3a12428d30778f1100770717956b.zip
Update math: redirect roundeven function
Redirect target specific roundeven functions for aarch64, ldbl-128ibm
and riscv.

(cherry picked from commit 3213ed770cbc5821920d16caa93c85e92dd7b9f6)
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r--sysdeps/aarch64/fpu/s_roundeven.c2
-rw-r--r--sysdeps/aarch64/fpu/s_roundevenf.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/aarch64/fpu/s_roundeven.c b/sysdeps/aarch64/fpu/s_roundeven.c
index d74b40daf5..fbce9aaded 100644
--- a/sysdeps/aarch64/fpu/s_roundeven.c
+++ b/sysdeps/aarch64/fpu/s_roundeven.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#define NO_MATH_REDIRECT
 #include <math.h>
 #include <libm-alias-double.h>
 
@@ -25,5 +26,4 @@ __roundeven (double x)
   asm volatile ("frintn \t%d0, %d1" : "=w" (x) : "w" (x));
   return x;
 }
-hidden_def (__roundeven)
 libm_alias_double (__roundeven, roundeven)
diff --git a/sysdeps/aarch64/fpu/s_roundevenf.c b/sysdeps/aarch64/fpu/s_roundevenf.c
index dfc492c2f8..7985ca5f30 100644
--- a/sysdeps/aarch64/fpu/s_roundevenf.c
+++ b/sysdeps/aarch64/fpu/s_roundevenf.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#define NO_MATH_REDIRECT
 #include <math.h>
 #include <libm-alias-float.h>