Home
last modified time | relevance | path

Searched refs:PyLong_BASE (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Include/cpython/
H A Dlongintrepr.h17 Type 'digit' should be able to hold 2*PyLong_BASE-1, and type 'twodigits'
19 PyLong_BASE*PyLong_BASE-1. x_sub assumes that 'digit' is an unsigned type,
61 #define PyLong_BASE ((digit)1 << PyLong_SHIFT) macro
62 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
/third_party/python/Objects/
H A Dlongobject.c54 return x_plus_mask < ((twodigits)PyLong_MASK) + PyLong_BASE; in is_medium_int()
2442 log((double)PyLong_BASE)); in PyLong_FromString()
2445 if (next > PyLong_BASE) { in PyLong_FromString()
2536 assert(c < PyLong_BASE); in PyLong_FromString()
2560 assert(c < PyLong_BASE); in PyLong_FromString()
2822 digit is >= PyLong_BASE: the max value for q is PyLong_BASE+1, and in x_divrem()
2841 /* normalize: shift w1 left so that its top digit is >= PyLong_BASE/2. in x_divrem()
2896 if (r >= PyLong_BASE) in x_divrem()
2899 assert(q <= PyLong_BASE); in x_divrem()
[all...]
/third_party/python/Lib/test/
H A Dtest_sys.py1466 PyLong_BASE = 2**sys.int_info.bits_per_digit
1467 check(int(PyLong_BASE), vsize('') + 2*self.longdigit)
1468 check(int(PyLong_BASE**2-1), vsize('') + 2*self.longdigit)
1469 check(int(PyLong_BASE**2), vsize('') + 3*self.longdigit)
/third_party/python/Modules/_decimal/
H A D_decimal.c2189 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long() local
2192 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long() local
3534 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3536 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()

Completed in 14 milliseconds