summaryrefslogblamecommitdiff
path: root/src/math/__signbitl.c
blob: 81adb6ce38cda82ea0f48fe963728df3796a1838 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                          
#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;
}
#endif