add support for non-option arguments extension to getopt
[musl] / src / math / logb.c
index 624425a..7f8bdfa 100644 (file)
@@ -1,4 +1,4 @@
-#include "libm.h"
+#include <math.h>
 
 /*
 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);
 }