Sign in
mojo
/
mojo-testing
/
6f37494c4bbcdc32e0a869bf0f08c6f1e12fdabc
/
.
/
fusl
/
src
/
math
/
logbf.c
blob: 9c42fc7a9fd6bc7d5d2b85f357326b294d209889 [
file
]
#include
<math.h>
float
logbf
(
float
x
)
{
if
(!
isfinite
(
x
))
return
x
*
x
;
if
(
x
==
0
)
return
-
1
/
(
x
*
x
);
return
ilogbf
(
x
);
}