lib/libm/math: Add implementation of __signbitf, if needed by a port.

This commit is contained in:
Damien George 2018-09-27 15:21:04 +10:00
parent 4c08932e73
commit 8960a28238
1 changed files with 5 additions and 0 deletions

View File

@ -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};