diff mbox series

float128: use builtin_signbitf128 always

Message ID 20200407201516.11978-1-murphyp@linux.vnet.ibm.com
State New
Headers show
Series float128: use builtin_signbitf128 always | expand

Commit Message

develop--- via Libc-alpha April 7, 2020, 8:15 p.m. UTC
From: "Paul E. Murphy" <murp@ibm.com>

The minimum GCC version has been raised beyond 6 for building
glibc.  Therefore, follow the advice inside the implementation
and remove the GCC < 6 codepath.
---
 sysdeps/ieee754/float128/s_signbitf128.c | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)
diff mbox series

Patch

diff --git a/sysdeps/ieee754/float128/s_signbitf128.c b/sysdeps/ieee754/float128/s_signbitf128.c
index 1fc00658f8..c2a1097db6 100644
--- a/sysdeps/ieee754/float128/s_signbitf128.c
+++ b/sysdeps/ieee754/float128/s_signbitf128.c
@@ -17,21 +17,4 @@ 
    <https://www.gnu.org/licenses/>.  */
 
 #include <float128_private.h>
-#include <math.h>
-#include <math_private.h>
-
-/* Once GCC >= 6.0 is required for building glibc, this implementation can
-   be removed and replaced with an inclusion of ldbl-128/s_signbitl.c.  */
-int
-__signbitf128 (_Float128 x)
-{
-#if __GNUC_PREREQ (6, 0)
-  return __builtin_signbit (x);
-#else
-  int64_t e;
-
-  GET_FLOAT128_MSW64 (e, x);
-  return e < 0;
-#endif
-}
-hidden_def (__signbitf128)
+#include "../ldbl-128/s_signbitl.c"