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,10 @@
|
||||
#include <math.h>
|
||||
|
||||
float logbf(float x)
|
||||
{
|
||||
if (!isfinite(x))
|
||||
return x * x;
|
||||
if (x == 0)
|
||||
return -1/(x*x);
|
||||
return ilogbf(x);
|
||||
}
|
||||
Reference in New Issue
Block a user