X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flogb.c;h=7f8bdfae19f8ca0a85b611d38a73695ccf588e43;hb=0c8bc102f287d3993751d80ba2dffb01e0c8bc7f;hp=624425a81165b219a973dee4c3d0f6cbe2c3c43c;hpb=52bcf3f5fb3251dca4df5b97b01543160340b31b;p=musl diff --git a/src/math/logb.c b/src/math/logb.c index 624425a8..7f8bdfae 100644 --- a/src/math/logb.c +++ b/src/math/logb.c @@ -1,4 +1,4 @@ -#include "libm.h" +#include /* special cases: @@ -12,6 +12,6 @@ double logb(double x) if (!isfinite(x)) return x * x; if (x == 0) - return -1/(x+0); + return -1/(x*x); return ilogb(x); }