summaryrefslogtreecommitdiff
path: root/src/math/logbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/logbf.c')
-rw-r--r--src/math/logbf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/logbf.c b/src/math/logbf.c
index 950d3569..a0a0b5ed 100644
--- a/src/math/logbf.c
+++ b/src/math/logbf.c
@@ -1,10 +1,10 @@
-#include "libm.h"
+#include <math.h>
float logbf(float x)
{
if (!isfinite(x))
return x * x;
if (x == 0)
- return -1/(x+0);
+ return -1/(x*x);
return ilogbf(x);
}