diff options
Diffstat (limited to 'pl/math/log10f.c')
-rw-r--r-- | pl/math/log10f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pl/math/log10f.c b/pl/math/log10f.c index 32de42f..5813982 100644 --- a/pl/math/log10f.c +++ b/pl/math/log10f.c @@ -67,7 +67,7 @@ log10f (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); |