float128: use builtin_signbitf128 always
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Tue, 7 Apr 2020 21:20:35 +0000 (16:20 -0500)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Mon, 4 May 2020 18:18:45 +0000 (13:18 -0500)
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.

include/math.h
sysdeps/ieee754/float128/s_signbitf128.c

index 3979c47..e1c2a4e 100644 (file)
@@ -29,7 +29,6 @@ hidden_proto (__isnanl)
 hidden_proto (__finitef128)
 hidden_proto (__isinff128)
 hidden_proto (__isnanf128)
-hidden_proto (__signbitf128)
 #  endif
 # endif
 
index 1fc0065..c2a1097 100644 (file)
    <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"