mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
11
libc/math/__signbitf.c
Normal file
11
libc/math/__signbitf.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "libc/math/libm.h"
|
||||
|
||||
// FIXME: macro in math.h
|
||||
int __signbitf(float x)
|
||||
{
|
||||
union {
|
||||
float f;
|
||||
uint32_t i;
|
||||
} y = { x };
|
||||
return y.i>>31;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue