Home
last modified time | relevance | path

Searched refs:PyLong_BASE (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Include/cpython/
Dlongintrepr.h61 #define PyLong_BASE ((digit)1 << PyLong_SHIFT) macro
62 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
/external/python/cpython3/Objects/
Dlongobject.c46 return x_plus_mask < ((twodigits)PyLong_MASK) + PyLong_BASE; in is_medium_int()
2758 log((double)PyLong_BASE)); in long_from_non_binary_base()
2761 if (next > PyLong_BASE) { in long_from_non_binary_base()
2818 assert(c < PyLong_BASE); in long_from_non_binary_base()
2842 assert(c < PyLong_BASE); in long_from_non_binary_base()
3346 if (r >= PyLong_BASE) in x_divrem()
3349 assert(q <= PyLong_BASE); in x_divrem()
3376 assert(q < PyLong_BASE); in x_divrem()
3490 dx = dx * PyLong_BASE + x_digits[--x_size]; in _PyLong_Frexp()
4625 da = da * PyLong_BASE + a->long_value.ob_digit[--a_size]; in long_true_divide()
[all …]
/external/python/cpython3/Lib/test/
Dtest_sys.py1660 PyLong_BASE = 2**sys.int_info.bits_per_digit
1661 check(int(PyLong_BASE), vsize('') + 2*self.longdigit)
1662 check(int(PyLong_BASE**2-1), vsize('') + 2*self.longdigit)
1663 check(int(PyLong_BASE**2), vsize('') + 3*self.longdigit)
/external/python/cpython3/Modules/_decimal/
D_decimal.c2326 mpd_qimport_u32(MPD(dec), l->long_value.ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2329 mpd_qimport_u16(MPD(dec), l->long_value.ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3607 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3609 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
/external/python/cpython3/Misc/NEWS.d/
D3.11.0a4.rst193 :c:macro:`PyLong_BASE`. Patch by Xinhang Xu.