Home
last modified time | relevance | path

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

/external/python/cpython2/Include/
Dlongintrepr.h63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT) macro
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
68 #define BASE PyLong_BASE
/external/python/cpython3/Include/
Dlongintrepr.h63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT) macro
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
/external/python/cpython2/Lib/test/
Dtest_sys.py691 PyLong_BASE = 2**sys.long_info.bits_per_digit
692 check(long(PyLong_BASE), vsize('') + 2*self.longdigit)
693 check(long(PyLong_BASE**2-1), vsize('') + 2*self.longdigit)
694 check(long(PyLong_BASE**2), vsize('') + 3*self.longdigit)
/external/python/cpython3/Objects/
Dlongobject.c319 if (ival < PyLong_BASE) in PyLong_FromUnsignedLong()
1124 if (ival < PyLong_BASE) in PyLong_FromUnsignedLongLong()
1192 if (ival < PyLong_BASE) in PyLong_FromSize_t()
2288 log((double)PyLong_BASE)); in PyLong_FromString()
2291 if (next > PyLong_BASE) { in PyLong_FromString()
2371 assert(c < PyLong_BASE); in PyLong_FromString()
2395 assert(c < PyLong_BASE); in PyLong_FromString()
2691 if (r >= PyLong_BASE) in x_divrem()
2694 assert(q <= PyLong_BASE); in x_divrem()
2721 assert(q < PyLong_BASE); in x_divrem()
[all …]
/external/python/cpython2/Objects/
Dlongobject.c1870 log((double)PyLong_BASE)); in PyLong_FromString()
1873 if (next > PyLong_BASE) in PyLong_FromString()
1915 assert(c < PyLong_BASE); in PyLong_FromString()
1938 assert(c < PyLong_BASE); in PyLong_FromString()
2158 if (r >= PyLong_BASE) in x_divrem()
2161 assert(q <= PyLong_BASE); in x_divrem()
2188 assert(q < PyLong_BASE); in x_divrem()
2304 dx = dx * PyLong_BASE + x_digits[--x_size]; in _PyLong_Frexp()
3215 da = da * PyLong_BASE + a->ob_digit[--a_size]; in long_true_divide()
3218 db = db * PyLong_BASE + b->ob_digit[--b_size]; in long_true_divide()
[all …]
/external/python/cpython3/Lib/test/
Dtest_sys.py1066 PyLong_BASE = 2**sys.int_info.bits_per_digit
1067 check(int(PyLong_BASE), vsize('') + 2*self.longdigit)
1068 check(int(PyLong_BASE**2-1), vsize('') + 2*self.longdigit)
1069 check(int(PyLong_BASE**2), vsize('') + 3*self.longdigit)
/external/python/cpython3/Modules/_decimal/
D_decimal.c2007 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2010 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3227 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3229 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()