about summary refs log tree commit diff
path: root/sysdeps/ieee754/float128
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2020-04-07 16:20:35 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2020-05-04 13:18:45 -0500
commita49e56a945972186a829ca3ad7dec7fb9c923488 (patch)
tree3f0d44c70d768803b50655390713ee90457c2ddd /sysdeps/ieee754/float128
parent06febd8c6705c816b2f32ee7aa1f4c0184b05248 (diff)
downloadglibc-a49e56a945972186a829ca3ad7dec7fb9c923488.tar.gz
glibc-a49e56a945972186a829ca3ad7dec7fb9c923488.tar.xz
glibc-a49e56a945972186a829ca3ad7dec7fb9c923488.zip
float128: use builtin_signbitf128 always
The minimum GCC version has been raised to 6.2 for building
glibc.  Therefore, follow the advice inside the implementation
and remove the GCC < 6 codepath.

Likewise, remove the hidden_proto as all internal usages should
inline now.
Diffstat (limited to 'sysdeps/ieee754/float128')
-rw-r--r--sysdeps/ieee754/float128/s_signbitf128.c19
1 files changed, 1 insertions, 18 deletions
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"