Searched refs:wordshift (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | longobject.c | 4256 divmod_shift(PyLongObject *shiftby, Py_ssize_t *wordshift, digit *remshift) in divmod_shift() argument 4262 *wordshift = lshiftby / PyLong_SHIFT; in divmod_shift() 4274 *wordshift = PyLong_AsSsize_t((PyObject *)wordshift_obj); in divmod_shift() 4276 if (*wordshift >= 0 && *wordshift < PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(digit)) { in divmod_shift() 4282 *wordshift = PY_SSIZE_T_MAX / sizeof(digit); in divmod_shift() 4291 Py_ssize_t newsize, wordshift, hishift, i, j; in long_rshift() local 4316 if (divmod_shift(b, &wordshift, &loshift) < 0) in long_rshift() 4318 newsize = Py_SIZE(a) - wordshift; in long_rshift() 4327 for (i = 0, j = wordshift; i < newsize; i++, j++) { in long_rshift() 4344 Py_ssize_t oldsize, newsize, wordshift, i, j; in long_lshift() local [all …]
|
/external/python/cpython2/Objects/ |
D | longobject.c | 3642 Py_ssize_t shiftby, newsize, wordshift, loshift, hishift, i, j; in long_rshift() local 3669 wordshift = shiftby / PyLong_SHIFT; in long_rshift() 3670 newsize = ABS(Py_SIZE(a)) - wordshift; in long_rshift() 3686 for (i = 0, j = wordshift; i < newsize; i++, j++) { in long_rshift() 3706 Py_ssize_t shiftby, oldsize, newsize, wordshift, remshift, i, j; in long_lshift() local 3725 wordshift = shiftby / PyLong_SHIFT; in long_lshift() 3726 remshift = shiftby - wordshift * PyLong_SHIFT; in long_lshift() 3729 newsize = oldsize + wordshift; in long_lshift() 3737 for (i = 0; i < wordshift; i++) in long_lshift() 3740 for (i = wordshift, j = 0; j < oldsize; i++, j++) { in long_lshift()
|