about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-128
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2015-09-18 16:39:08 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2015-09-18 16:39:08 +0100
commit020167a4ce53f7dd8d5b1912a42163bd1077e6c5 (patch)
tree5eaa52dd21aa07a1b13eceb545d31b6968f94e28 /sysdeps/ieee754/ldbl-128
parent8df4e219e43a4a257d0759b54fef8c488e2f282e (diff)
downloadglibc-020167a4ce53f7dd8d5b1912a42163bd1077e6c5.tar.gz
glibc-020167a4ce53f7dd8d5b1912a42163bd1077e6c5.tar.xz
glibc-020167a4ce53f7dd8d5b1912a42163bd1077e6c5.zip
Use the GCC builtin functions for the non-inlined signbit implementations.
2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>

        * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
        Use __builtin_signbit.
        * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
        Use __builtin_signbitf.
        * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
        Use __builtin_signbitl.
        * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
        * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128')
-rw-r--r--sysdeps/ieee754/ldbl-128/s_signbitl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/ieee754/ldbl-128/s_signbitl.c b/sysdeps/ieee754/ldbl-128/s_signbitl.c
index acfe859a2e..ea689a6fe5 100644
--- a/sysdeps/ieee754/ldbl-128/s_signbitl.c
+++ b/sysdeps/ieee754/ldbl-128/s_signbitl.c
@@ -19,13 +19,8 @@
 
 #include <math.h>
 
-#include <math_private.h>
-
 int
 __signbitl (long double x)
 {
-  int64_t e;
-
-  GET_LDOUBLE_MSW64 (e, x);
-  return e < 0;
+  return __builtin_signbitl (x);
 }