summaryrefslogtreecommitdiff
path: root/src/math/logb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/logb.c')
-rw-r--r--src/math/logb.c4
1 files changed, 2 insertions, 2 deletions
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 <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);
}