summaryrefslogtreecommitdiff
path: root/src/math/__signbitl.c
blob: c52c87bba062bf8b7c232496ef5c2cd86c2d7fbf (plain)
1
2
3
4
5
6
7
8
9
#include "libm.h"

#if (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
int __signbitl(long double x)
{
	union ldshape u = {x};
	return u.i.se >> 15;
}
#endif