about summary refs log tree commit diff
path: root/src/math/__signbit.c
blob: ffe717ce6aafa0481110ec5bc7d0754a2507afa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "libm.h"

// FIXME: macro
int __signbit(double x)
{
	union {
		double d;
		uint64_t i;
	} y = { x };
	return y.i>>63;
}