diff options
Diffstat (limited to 'src/math/__signbitf.c')
-rw-r--r-- | src/math/__signbitf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/__signbitf.c b/src/math/__signbitf.c new file mode 100644 index 00000000..ff3e81ff --- /dev/null +++ b/src/math/__signbitf.c @@ -0,0 +1,11 @@ +#include "libm.h" + +// FIXME +int __signbitf(float x) +{ + union { + float f; + uint32_t i; + } y = { x }; + return y.i>>31; +} |