]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
math: redirect roundeven function
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Mon, 24 May 2021 01:43:10 +0000 (09:43 +0800)
committerSunil K Pandey <skpgkp2@gmail.com>
Thu, 29 Sep 2022 20:15:08 +0000 (13:15 -0700)
This patch redirect roundeven function for futhermore changes.

Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 447954a206837b5f153869cfeeeab44631c3fac9)

include/math.h
sysdeps/ieee754/dbl-64/s_roundeven.c
sysdeps/ieee754/float128/s_roundevenf128.c
sysdeps/ieee754/flt-32/s_roundevenf.c
sysdeps/ieee754/ldbl-128/s_roundevenl.c
sysdeps/ieee754/ldbl-96/s_roundevenl.c

index e1c2a4eb649941574677c0601883ef5038c53bb6..b4772d3d3b70b88a6f4bc5b9f4c1a5d229662347 100644 (file)
@@ -38,7 +38,6 @@ libm_hidden_proto (__issignaling)
 libm_hidden_proto (__issignalingf)
 libm_hidden_proto (__exp)
 libm_hidden_proto (__expf)
-libm_hidden_proto (__roundeven)
 
 #  if !defined __NO_LONG_DOUBLE_MATH \
       && __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
@@ -159,6 +158,7 @@ fabsf128 (_Float128 x)
 MATH_REDIRECT (sqrt, "__ieee754_", MATH_REDIRECT_UNARY_ARGS)
 MATH_REDIRECT (ceil, "__", MATH_REDIRECT_UNARY_ARGS)
 MATH_REDIRECT (floor, "__", MATH_REDIRECT_UNARY_ARGS)
+MATH_REDIRECT (roundeven, "__", MATH_REDIRECT_UNARY_ARGS)
 MATH_REDIRECT (rint, "__", MATH_REDIRECT_UNARY_ARGS)
 MATH_REDIRECT (trunc, "__", MATH_REDIRECT_UNARY_ARGS)
 MATH_REDIRECT (round, "__", MATH_REDIRECT_UNARY_ARGS)
index 943b2c634ccdbb69d3f5cda692cab229646bf08b..5deff3bb8a83f13a4111e58e42289738f430dfe4 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 <math_private.h>
 #include <libm-alias-double.h>
@@ -66,5 +67,6 @@ __roundeven (double x)
   INSERT_WORDS64 (x, ix);
   return x;
 }
-hidden_def (__roundeven)
+#ifndef __roundeven
 libm_alias_double (__roundeven, roundeven)
+#endif
index 5a9b3f395fe6d92d6737449ef330a829f5f693bc..e0faf727f69ff20394e03dfcc0bd38e15c2d7d9e 100644 (file)
@@ -1,2 +1,3 @@
+#define NO_MATH_REDIRECT
 #include <float128_private.h>
 #include "../ldbl-128/s_roundevenl.c"
index ae54365bbe871914473b5c2ae4eb0f900f485ab0..2cc0d7b001a0b0e74fbc332d3c08077c0870bc8d 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>
 #include <libm-alias-float.h>
@@ -67,4 +68,6 @@ __roundevenf (float x)
   SET_FLOAT_WORD (x, ix);
   return x;
 }
+#ifndef __roundevenf
 libm_alias_float (__roundeven, roundeven)
+#endif
index 02765be0e0cdb81cef6b5ecfbc3c39470f340016..7c9c11fad28f127b723bbea0947eeec2efc0b358 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>
 #include <libm-alias-ldouble.h>
index 8340116ed895d2c2f7ccb9d566637aa59b08427c..f826829c312018ca00191d1d6cab780901f9f8a6 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>
 #include <libm-alias-ldouble.h>