about summary refs log tree commit diff
path: root/src/math/__signbitl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/__signbitl.c')
-rw-r--r--src/math/__signbitl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/math/__signbitl.c b/src/math/__signbitl.c
index 81adb6ce..c52c87bb 100644
--- a/src/math/__signbitl.c
+++ b/src/math/__signbitl.c
@@ -1,11 +1,9 @@
 #include "libm.h"
 
-// FIXME: should be a macro
 #if (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
 int __signbitl(long double x)
 {
 	union ldshape u = {x};
-
-	return u.bits.sign;
+	return u.i.se >> 15;
 }
 #endif