first commit of the new libm!
[musl] / src / math / __signbitl.c
1 #include "libm.h"
2
3 // FIXME: should be a macro
4 #if (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
5 int __signbitl(long double x)
6 {
7         union ldshape u = {x};
8
9         return u.bits.sign;
10 }
11 #endif