Searched refs:bits_per_char (Results 1 – 2 of 2) sorted by relevance
243 const int bits_per_char = CountTrailingZeros(radix_); in BasePowerOfTwo() local253 int consumed_bits = bits_per_char - available_bits; in BasePowerOfTwo()256 while (available_bits >= bits_per_char) { in BasePowerOfTwo()258 digit >>= bits_per_char; in BasePowerOfTwo()259 available_bits -= bits_per_char; in BasePowerOfTwo()266 digit = msd >> (bits_per_char - available_bits); in BasePowerOfTwo()269 digit >>= bits_per_char; in BasePowerOfTwo()591 const int bits_per_char = CountTrailingZeros(radix); in ToStringResultLength() local592 result = DIV_CEIL(bit_length, bits_per_char) + sign; in ToStringResultLength()
2041 int bits_per_char; in long_from_binary_base() local2050 for (bits_per_char = -1; n; ++bits_per_char) { in long_from_binary_base()2075 if (digits > (PY_SSIZE_T_MAX - (PyLong_SHIFT - 1)) / bits_per_char) { in long_from_binary_base()2081 n = (digits * bits_per_char + PyLong_SHIFT - 1) / PyLong_SHIFT; in long_from_binary_base()2101 bits_in_accum += bits_per_char; in long_from_binary_base()