projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
first commit of the new libm!
[musl]
/
src
/
math
/
__signbitf.c
diff --git a/src/math/__signbitf.c
b/src/math/__signbitf.c
new file mode 100644
(file)
index 0000000..
ff3e81f
--- /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;
+}