Searched refs:PyLong_BASE (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Include/ |
D | longintrepr.h | 63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT) macro 64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
|
/third_party/python/Objects/ |
D | longobject.c | 2302 log((double)PyLong_BASE)); in PyLong_FromString() 2305 if (next > PyLong_BASE) { in PyLong_FromString() 2396 assert(c < PyLong_BASE); in PyLong_FromString() 2420 assert(c < PyLong_BASE); in PyLong_FromString() 2706 if (r >= PyLong_BASE) in x_divrem() 2709 assert(q <= PyLong_BASE); in x_divrem() 2736 assert(q < PyLong_BASE); in x_divrem() 2850 dx = dx * PyLong_BASE + x_digits[--x_size]; in _PyLong_Frexp() 3858 da = da * PyLong_BASE + a->ob_digit[--a_size]; in long_true_divide() 3861 db = db * PyLong_BASE + b->ob_digit[--b_size]; in long_true_divide() [all …]
|
/third_party/python/Lib/test/ |
D | test_sys.py | 1341 PyLong_BASE = 2**sys.int_info.bits_per_digit 1342 check(int(PyLong_BASE), vsize('') + 2*self.longdigit) 1343 check(int(PyLong_BASE**2-1), vsize('') + 2*self.longdigit) 1344 check(int(PyLong_BASE**2), vsize('') + 3*self.longdigit)
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 2151 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long() 2154 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long() 3384 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long() 3386 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
|