projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify vasprintf implementation
[musl]
/
src
/
math
/
log10l.c
diff --git
a/src/math/log10l.c
b/src/math/log10l.c
index
f0eeeaf
..
c7aacf9
100644
(file)
--- a/
src/math/log10l.c
+++ b/
src/math/log10l.c
@@
-117,16
+117,15
@@
static const long double S[4] = {
long double log10l(long double x)
{
long double log10l(long double x)
{
- long double y;
- volatile long double z;
+ long double y, z;
int e;
if (isnan(x))
return x;
if(x <= 0.0) {
if(x == 0.0)
int e;
if (isnan(x))
return x;
if(x <= 0.0) {
if(x == 0.0)
- return -1.0 / (x
-
x);
- return (x - x) /
(x - x)
;
+ return -1.0 / (x
*
x);
+ return (x - x) /
0.0
;
}
if (x == INFINITY)
return INFINITY;
}
if (x == INFINITY)
return INFINITY;