Searched refs:msd_bits (Results 1 – 2 of 2) sorted by relevance
749 int msd_bits; in _PyLong_NumBits() local760 msd_bits = bits_in_digit(msd); in _PyLong_NumBits()761 if (SIZE_MAX - msd_bits < result) in _PyLong_NumBits()763 result += msd_bits; in _PyLong_NumBits()5110 int msd_bits; in int_bit_length_impl() local5121 msd_bits = bits_in_digit(msd); in int_bit_length_impl()5124 return PyLong_FromSsize_t((ndigits-1)*PyLong_SHIFT + msd_bits); in int_bit_length_impl()5140 x = (PyLongObject *)PyLong_FromLong((long)msd_bits); in int_bit_length_impl()
4153 Py_ssize_t ndigits, msd_bits = 0; in long_bit_length() local4165 msd_bits += 6; in long_bit_length()4168 msd_bits += (long)(BitLengthTable[msd]); in long_bit_length()4171 return PyInt_FromSsize_t((ndigits-1)*PyLong_SHIFT + msd_bits); in long_bit_length()4187 x = (PyLongObject *)PyLong_FromLong((long)msd_bits); in long_bit_length()