diff options
Diffstat (limited to 'contrib/tools/python3/src/Python/pymath.c')
| -rw-r--r-- | contrib/tools/python3/src/Python/pymath.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/contrib/tools/python3/src/Python/pymath.c b/contrib/tools/python3/src/Python/pymath.c index a08a0e79615..24b804223ee 100644 --- a/contrib/tools/python3/src/Python/pymath.c +++ b/contrib/tools/python3/src/Python/pymath.c @@ -79,18 +79,3 @@ round(double x) return copysign(y, x); } #endif /* HAVE_ROUND */ - -static const unsigned int BitLengthTable[32] = { - 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 -}; - -unsigned int _Py_bit_length(unsigned long d) { - unsigned int d_bits = 0; - while (d >= 32) { - d_bits += 6; - d >>= 6; - } - d_bits += BitLengthTable[d]; - return d_bits; -} |
