fix double-processing of DT_RELR relocations in ldso relocating itself
[musl] / src / math / logbl.c
index f385074..962973a 100644 (file)
@@ -1,4 +1,4 @@
-#include "libm.h"
+#include <math.h>
 #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