Sign in
mojo
/
mojo-testing
/
98fc6b388cd420e9379327f6c57efbd6acaa825e
/
.
/
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
);
}