Searched refs:PyLong_SHIFT (Results 1 - 6 of 6) sorted by relevance

/external/python/cpython3/Include/
H A Dlongintrepr.h21 PyLong_SHIFT. The majority of the code doesn't care about the precise
22 value of PyLong_SHIFT, but there are some notable exceptions:
24 - long_pow() requires that PyLong_SHIFT be divisible by 5
26 - PyLong_{As,From}ByteArray require that PyLong_SHIFT be at least 8
28 - long_hash() requires that PyLong_SHIFT is *strictly* less than the number
33 PyLong_SHIFT is strictly less than the number of bits in a size_t
35 - the marshal code currently expects that PyLong_SHIFT is a multiple of 15
38 digit; with the current values this forces PyLong_SHIFT >= 9
49 #define PyLong_SHIFT 30 macro
57 #define PyLong_SHIFT 1 macro
[all...]
/external/python/cpython2/Include/
H A Dlongintrepr.h20 PyLong_SHIFT. The majority of the code doesn't care about the precise
21 value of PyLong_SHIFT, but there are some notable exceptions:
23 - long_pow() requires that PyLong_SHIFT be divisible by 5
25 - PyLong_{As,From}ByteArray require that PyLong_SHIFT be at least 8
27 - long_hash() requires that PyLong_SHIFT is *strictly* less than the number
32 PyLong_SHIFT is strictly less than the number of bits in a size_t
34 - the marshal code currently expects that PyLong_SHIFT is a multiple of 15
49 #define PyLong_SHIFT 30 macro
57 #define PyLong_SHIFT 15 macro
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
[all...]
/external/python/cpython3/Objects/
H A Dlongobject.c253 if (!(abs_ival >> PyLong_SHIFT)) {
263 #if PyLong_SHIFT==15
265 if (!(abs_ival >> 2*PyLong_SHIFT)) {
272 abs_ival >> PyLong_SHIFT, unsigned long, digit);
282 t >>= PyLong_SHIFT; local
292 t >>= PyLong_SHIFT; local
313 t >>= PyLong_SHIFT; local
321 ival >>= PyLong_SHIFT; local
353 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */
357 frac = ldexp(frac, (expo-1) % PyLong_SHIFT
837 accum >>= PyLong_SHIFT; local
1070 t >>= PyLong_SHIFT; local
1079 t >>= PyLong_SHIFT; local
1100 t >>= PyLong_SHIFT; local
1108 ival >>= PyLong_SHIFT; local
1139 t >>= PyLong_SHIFT; local
1148 t >>= PyLong_SHIFT; local
1169 t >>= PyLong_SHIFT; local
1177 ival >>= PyLong_SHIFT; local
1453 carry >>= PyLong_SHIFT; local
1459 carry >>= PyLong_SHIFT; local
1479 borrow >>= PyLong_SHIFT; local
1485 borrow >>= PyLong_SHIFT; local
2084 accum >>= PyLong_SHIFT; local
2376 c >>= PyLong_SHIFT; local
2704 carry >>= PyLong_SHIFT; local
3033 carry >>= PyLong_SHIFT; local
3038 carry >>= PyLong_SHIFT; local
3084 borrow >>= PyLong_SHIFT; local
3090 borrow >>= PyLong_SHIFT; local
3204 carry >>= PyLong_SHIFT; local
3214 carry >>= PyLong_SHIFT; local
3220 carry >>= PyLong_SHIFT; local
3243 carry >>= PyLong_SHIFT; local
4386 accum >>= PyLong_SHIFT; local
4408 carry >>= PyLong_SHIFT; local
4716 c_carry >>= PyLong_SHIFT; local
4717 d_carry >>= PyLong_SHIFT; local
4724 c_carry >>= PyLong_SHIFT; local
4725 d_carry >>= PyLong_SHIFT; local
[all...]
/external/python/cpython2/Objects/
H A Dlongobject.c127 t >>= PyLong_SHIFT; local
136 t >>= PyLong_SHIFT; local
155 t >>= PyLong_SHIFT; local
163 ival >>= PyLong_SHIFT; local
195 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */
199 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1);
204 frac = ldexp(frac, PyLong_SHIFT);
298 x = (x << PyLong_SHIFT) + v->ob_digit[i];
299 if ((x >> PyLong_SHIFT) != prev) {
384 x = (x << PyLong_SHIFT) |
617 accum >>= PyLong_SHIFT; local
871 t >>= PyLong_SHIFT; local
880 t >>= PyLong_SHIFT; local
899 t >>= PyLong_SHIFT; local
907 ival >>= PyLong_SHIFT; local
1216 carry >>= PyLong_SHIFT; local
1222 carry >>= PyLong_SHIFT; local
1242 borrow >>= PyLong_SHIFT; local
1248 borrow >>= PyLong_SHIFT; local
1699 accum >>= PyLong_SHIFT; local
1934 c >>= PyLong_SHIFT; local
2182 carry >>= PyLong_SHIFT; local
2451 carry >>= PyLong_SHIFT; local
2456 carry >>= PyLong_SHIFT; local
2502 borrow >>= PyLong_SHIFT; local
2508 borrow >>= PyLong_SHIFT; local
2607 carry >>= PyLong_SHIFT; local
2617 carry >>= PyLong_SHIFT; local
2623 carry >>= PyLong_SHIFT; local
2646 carry >>= PyLong_SHIFT; local
3743 accum >>= PyLong_SHIFT; local
3768 carry >>= PyLong_SHIFT; local
[all...]
/external/python/cpython2/Python/
H A Dmarshal.c163 #if PyLong_SHIFT % PyLong_MARSHAL_SHIFT != 0
164 #error "PyLong_SHIFT must be a multiple of PyLong_MARSHAL_SHIFT"
166 #define PyLong_MARSHAL_RATIO (PyLong_SHIFT / PyLong_MARSHAL_SHIFT)
/external/python/cpython3/Python/
H A Dmarshal.c201 #if PyLong_SHIFT % PyLong_MARSHAL_SHIFT != 0
202 #error "PyLong_SHIFT must be a multiple of PyLong_MARSHAL_SHIFT"
204 #define PyLong_MARSHAL_RATIO (PyLong_SHIFT / PyLong_MARSHAL_SHIFT)

Completed in 219 milliseconds