blob: 89a271642b8a3083fee8b0e892785641af390b4c [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);
}