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