Initial import
This commit is contained in:
10
libc/math/logbf.c
Normal file
10
libc/math/logbf.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "libc/math/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