acos.s fix: use the formula acos(x) = atan2(sqrt(1-x),sqrt(1+x))
[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