Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dlongobject.c197 if (!(abs_ival >> PyLong_SHIFT)) { in PyLong_FromLong()
207 #if PyLong_SHIFT==15 in PyLong_FromLong()
209 if (!(abs_ival >> 2*PyLong_SHIFT)) { in PyLong_FromLong()
216 abs_ival >> PyLong_SHIFT, unsigned long, digit); in PyLong_FromLong()
226 t >>= PyLong_SHIFT; in PyLong_FromLong()
236 t >>= PyLong_SHIFT; in PyLong_FromLong()
252 t >>= PyLong_SHIFT; \
261 (ival) >>= PyLong_SHIFT; \
330 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
334 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
[all …]
/third_party/python/Include/
Dlongintrepr.h49 #define PyLong_SHIFT 30 macro
57 #define PyLong_SHIFT 15
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
66 #if PyLong_SHIFT % 5 != 0
/third_party/python/Python/
Dmarshal.c217 #if PyLong_SHIFT % PyLong_MARSHAL_SHIFT != 0
220 #define PyLong_MARSHAL_RATIO (PyLong_SHIFT / PyLong_MARSHAL_SHIFT)