fix regression in access to optopt object
[musl.git] / src / math / logbf.c
bloba0a0b5ed5be57de3e3ce05811af631f2ca88898a
1 #include <math.h>
3 float logbf(float x)
5 if (!isfinite(x))
6 return x * x;
7 if (x == 0)
8 return -1/(x*x);
9 return ilogbf(x);