user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
float fabsf(float x)
|
||||
{
|
||||
union {float f; uint32_t i;} u = {x};
|
||||
u.i &= 0x7fffffff;
|
||||
return u.f;
|
||||
}
|
||||
Reference in New Issue
Block a user