projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: fix undefined shift in logf
[musl]
/
src
/
math
/
logf.c
diff --git
a/src/math/logf.c
b/src/math/logf.c
index
7ee5d7f
..
e4c2237
100644
(file)
--- a/
src/math/logf.c
+++ b/
src/math/logf.c
@@
-53,7
+53,7
@@
float logf(float x)
tmp = ix - OFF;
i = (tmp >> (23 - LOGF_TABLE_BITS)) % N;
k = (int32_t)tmp >> 23; /* arithmetic shift */
- iz = ix - (tmp & 0x
1ff << 23
);
+ iz = ix - (tmp & 0x
ff800000
);
invc = T[i].invc;
logc = T[i].logc;
z = (double_t)asfloat(iz);