X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flogbl.c;h=962973a7b99bfffdcb2c1677a3c0b2ba5f87d357;hb=6476b8135760659b25c93ff9308425ca98a9e777;hp=f3850745812bcfdc797603502d188bf4245b9c10;hpb=52bcf3f5fb3251dca4df5b97b01543160340b31b;p=musl diff --git a/src/math/logbl.c b/src/math/logbl.c index f3850745..962973a7 100644 --- a/src/math/logbl.c +++ b/src/math/logbl.c @@ -1,4 +1,4 @@ -#include "libm.h" +#include #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long double logbl(long double x) { @@ -10,7 +10,7 @@ long double logbl(long double x) if (!isfinite(x)) return x * x; if (x == 0) - return -1/(x+0); + return -1/(x*x); return ilogbl(x); } #endif