summary refs log tree commit diff
path: root/sysdeps/riscv
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-06-23 13:29:41 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-06-27 07:56:57 -0700
commit3213ed770cbc5821920d16caa93c85e92dd7b9f6 (patch)
tree5e33abbb1c02eed2987f01d80fa9ff87385b3a5f /sysdeps/riscv
parenteb9066203f6e07128d42f771def4b7ad37b25dc1 (diff)
downloadglibc-3213ed770cbc5821920d16caa93c85e92dd7b9f6.tar.gz
glibc-3213ed770cbc5821920d16caa93c85e92dd7b9f6.tar.xz
glibc-3213ed770cbc5821920d16caa93c85e92dd7b9f6.zip
Update math: redirect roundeven function
Redirect target specific roundeven functions for aarch64, ldbl-128ibm
and riscv.
Diffstat (limited to 'sysdeps/riscv')
-rw-r--r--sysdeps/riscv/rv64/rvd/s_roundeven.c2
-rw-r--r--sysdeps/riscv/rvf/s_roundevenf.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/riscv/rv64/rvd/s_roundeven.c b/sysdeps/riscv/rv64/rvd/s_roundeven.c
index e77d8307d1..02dd0f7a9a 100644
--- a/sysdeps/riscv/rv64/rvd/s_roundeven.c
+++ b/sysdeps/riscv/rv64/rvd/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 <fenv_private.h>
 #include <libm-alias-double.h>
@@ -49,5 +50,4 @@ __roundeven (double x)
   return x;
 }
 
-hidden_def (__roundeven)
 libm_alias_double (__roundeven, roundeven)
diff --git a/sysdeps/riscv/rvf/s_roundevenf.c b/sysdeps/riscv/rvf/s_roundevenf.c
index fa594d46bd..be22d047e2 100644
--- a/sysdeps/riscv/rvf/s_roundevenf.c
+++ b/sysdeps/riscv/rvf/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 <fenv_private.h>
 #include <libm-alias-float.h>