summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libm/math.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libm/math.c b/lib/libm/math.c
index 1bfa5fe93..c23b9f8d3 100644
--- a/lib/libm/math.c
+++ b/lib/libm/math.c
@@ -36,6 +36,11 @@ typedef union {
};
} float_s_t;
+int __signbitf(float f) {
+ float_s_t u = {.f = f};
+ return u.s;
+}
+
#ifndef NDEBUG
float copysignf(float x, float y) {
float_s_t fx={.f = x};