Home
last modified time | relevance | path

Searched refs:PyLong_SHIFT (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Include/
Dlongintrepr.h49 #define PyLong_SHIFT 30 macro
57 #define PyLong_SHIFT 15
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
67 #define SHIFT PyLong_SHIFT
71 #if PyLong_SHIFT % 5 != 0
/external/python/cpython2/Objects/
Dlongobject.c127 t >>= PyLong_SHIFT; in PyLong_FromLong()
136 t >>= PyLong_SHIFT; in PyLong_FromLong()
155 t >>= PyLong_SHIFT; in PyLong_FromUnsignedLong()
163 ival >>= PyLong_SHIFT; in PyLong_FromUnsignedLong()
195 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
199 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
204 frac = ldexp(frac, PyLong_SHIFT); in PyLong_FromDouble()
298 x = (x << PyLong_SHIFT) + v->ob_digit[i]; in PyLong_AsLongAndOverflow()
299 if ((x >> PyLong_SHIFT) != prev) { in PyLong_AsLongAndOverflow()
384 x = (x << PyLong_SHIFT) | v->ob_digit[i]; in PyLong_AsSsize_t()
[all …]
/external/python/cpython2/Python/
Dmarshal.c163 #if PyLong_SHIFT % PyLong_MARSHAL_SHIFT != 0
166 #define PyLong_MARSHAL_RATIO (PyLong_SHIFT / PyLong_MARSHAL_SHIFT)