Home
last modified time | relevance | path

Searched refs:bits_per_char (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/v8/src/bigint/
Dtostring.cc243 const int bits_per_char = CountTrailingZeros(radix_); in BasePowerOfTwo() local
253 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() local
592 result = DIV_CEIL(bit_length, bits_per_char) + sign; in ToStringResultLength()
/third_party/python/Objects/
Dlongobject.c2041 int bits_per_char; in long_from_binary_base() local
2050 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()