Initial import
This commit is contained in:
13
libc/math/__signbit.c
Normal file
13
libc/math/__signbit.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "libc/math/libm.h"
|
||||
|
||||
// FIXME: macro in math.h
|
||||
int __signbit(double x)
|
||||
{
|
||||
union {
|
||||
double d;
|
||||
uint64_t i;
|
||||
} y = { x };
|
||||
return y.i>>63;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user