aboutsummaryrefslogtreecommitdiff
path: root/math/logf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/logf.c')
-rw-r--r--math/logf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/logf.c b/math/logf.c
index ea378d6..a1cd2d7 100644
--- a/math/logf.c
+++ b/math/logf.c
@@ -57,7 +57,7 @@ logf (float x)
tmp = ix - OFF;
i = (tmp >> (23 - LOGF_TABLE_BITS)) % N;
k = (int32_t) tmp >> 23; /* arithmetic shift */
- iz = ix - (tmp & 0x1ff << 23);
+ iz = ix - (tmp & 0xff800000);
invc = T[i].invc;
logc = T[i].logc;
z = (double_t) asfloat (iz);