Sign in
cobalt
/
cobalt
/
97b64f26fb12c9eab352139c26f0b01d1cb6d0b9
/
.
/
third_party
/
musl
/
src
/
math
/
logbf.c
blob: a0a0b5ed5be57de3e3ce05811af631f2ca88898a [
file
] [
log
] [
blame
]
#include
<math.h>
float
logbf
(
float
x
)
{
if
(!
isfinite
(
x
))
return
x
*
x
;
if
(
x
==
0
)
return
-
1
/(
x
*
x
);
return
ilogbf
(
x
);
}