X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flogbf.c;h=a0a0b5ed5be57de3e3ce05811af631f2ca88898a;hb=b7bc966522d73e1dc420b5ee6fc7a2e78099a08c;hp=950d35697bbe4abaa9a0ac83b70d5dbf6229359b;hpb=8bb181622222f2ee3462c8b021bcae4fcdbbd37a;p=musl diff --git a/src/math/logbf.c b/src/math/logbf.c index 950d3569..a0a0b5ed 100644 --- a/src/math/logbf.c +++ b/src/math/logbf.c @@ -1,10 +1,10 @@ -#include "libm.h" +#include float logbf(float x) { if (!isfinite(x)) return x * x; if (x == 0) - return -1/(x+0); + return -1/(x*x); return ilogbf(x); }