projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math.h: make __FLOAT_BITS and __DOUBLE_BITS C89
[musl]
/
src
/
math
/
logb.c
diff --git
a/src/math/logb.c
b/src/math/logb.c
index
624425a
..
7f8bdfa
100644
(file)
--- a/
src/math/logb.c
+++ b/
src/math/logb.c
@@
-1,4
+1,4
@@
-#include
"libm.h"
+#include
<math.h>
/*
special cases:
/*
special cases:
@@
-12,6
+12,6
@@
double logb(double x)
if (!isfinite(x))
return x * x;
if (x == 0)
if (!isfinite(x))
return x * x;
if (x == 0)
- return -1/(x
+0
);
+ return -1/(x
*x
);
return ilogb(x);
}
return ilogb(x);
}