projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove another invalid skip of locking in ungetwc
[oweals/musl.git]
/
src
/
math
/
logb.c
diff --git
a/src/math/logb.c
b/src/math/logb.c
index 624425a81165b219a973dee4c3d0f6cbe2c3c43c..7f8bdfae19f8ca0a85b611d38a73695ccf588e43 100644
(file)
--- 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);
}