Lines Matching refs:wordshift
4346 divmod_shift(PyObject *shiftby, Py_ssize_t *wordshift, digit *remshift) in divmod_shift() argument
4352 *wordshift = lshiftby / PyLong_SHIFT; in divmod_shift()
4364 *wordshift = PyLong_AsSsize_t((PyObject *)wordshift_obj); in divmod_shift()
4366 if (*wordshift >= 0 && *wordshift < PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(digit)) { in divmod_shift()
4372 *wordshift = PY_SSIZE_T_MAX / sizeof(digit); in divmod_shift()
4378 long_rshift1(PyLongObject *a, Py_ssize_t wordshift, digit remshift) in long_rshift1() argument
4390 a2 = (PyLongObject *) long_rshift1(a1, wordshift, remshift); in long_rshift1()
4398 newsize = Py_SIZE(a) - wordshift; in long_rshift1()
4407 for (i = 0, j = wordshift; i < newsize; i++, j++) { in long_rshift1()
4420 Py_ssize_t wordshift; in long_rshift() local
4432 if (divmod_shift(b, &wordshift, &remshift) < 0) in long_rshift()
4434 return long_rshift1((PyLongObject *)a, wordshift, remshift); in long_rshift()
4441 Py_ssize_t wordshift; in _PyLong_Rshift() local
4448 wordshift = shiftby / PyLong_SHIFT; in _PyLong_Rshift()
4450 return long_rshift1((PyLongObject *)a, wordshift, remshift); in _PyLong_Rshift()
4454 long_lshift1(PyLongObject *a, Py_ssize_t wordshift, digit remshift) in long_lshift1() argument
4462 newsize = oldsize + wordshift; in long_lshift1()
4472 for (i = 0; i < wordshift; i++) in long_lshift1()
4475 for (i = wordshift, j = 0; j < oldsize; i++, j++) { in long_lshift1()
4491 Py_ssize_t wordshift; in long_lshift() local
4503 if (divmod_shift(b, &wordshift, &remshift) < 0) in long_lshift()
4505 return long_lshift1((PyLongObject *)a, wordshift, remshift); in long_lshift()
4512 Py_ssize_t wordshift; in _PyLong_Lshift() local
4519 wordshift = shiftby / PyLong_SHIFT; in _PyLong_Lshift()
4521 return long_lshift1((PyLongObject *)a, wordshift, remshift); in _PyLong_Lshift()