]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update math: redirect roundeven function
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 23 Jun 2021 20:29:41 +0000 (13:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Jun 2021 14:56:57 +0000 (07:56 -0700)
Redirect target specific roundeven functions for aarch64, ldbl-128ibm
and riscv.

sysdeps/aarch64/fpu/s_roundeven.c
sysdeps/aarch64/fpu/s_roundevenf.c
sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c
sysdeps/riscv/rv64/rvd/s_roundeven.c
sysdeps/riscv/rvf/s_roundevenf.c

index d74b40daf5d02257f059c73eb4929e5c3824595c..fbce9aaded3a9fc2e1b5d62863e33e10526d85cd 100644 (file)
@@ -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)
index dfc492c2f8855d491896ace1669a69a4cab98492..7985ca5f30f4899e001624046666f31fcfa986c9 100644 (file)
@@ -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>
 
index 6701970f4a0b5794e1a70ee4fb19e0bf5806abe0..90eecf496b1828aed06b2c20f2a7ce9d3729a317 100644 (file)
@@ -17,6 +17,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#define NO_MATH_REDIRECT
 #include <math.h>
 #include <math_private.h>
 
index e77d8307d1f124f0ab40c4676d7b1d0feefdb23a..02dd0f7a9aede25654546bedff847c97b7438adf 100644 (file)
@@ -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)
index fa594d46bde7bd121b6127484be031d63fd25e76..be22d047e2c3901be2cd2e7c5d0f3121e995b04a 100644 (file)
@@ -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>