Lines Matching refs:ilow
443 list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in list_slice() argument
448 len = ihigh - ilow; in list_slice()
453 src = a->ob_item + ilow; in list_slice()
465 PyList_GetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in PyList_GetSlice() argument
471 if (ilow < 0) { in PyList_GetSlice()
472 ilow = 0; in PyList_GetSlice()
474 else if (ilow > Py_SIZE(a)) { in PyList_GetSlice()
475 ilow = Py_SIZE(a); in PyList_GetSlice()
477 if (ihigh < ilow) { in PyList_GetSlice()
478 ihigh = ilow; in PyList_GetSlice()
483 return list_slice((PyListObject *)a, ilow, ihigh); in PyList_GetSlice()
598 list_ass_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) in list_ass_slice() argument
626 result = list_ass_slice(a, ilow, ihigh, v); in list_ass_slice()
636 if (ilow < 0) in list_ass_slice()
637 ilow = 0; in list_ass_slice()
638 else if (ilow > Py_SIZE(a)) in list_ass_slice()
639 ilow = Py_SIZE(a); in list_ass_slice()
641 if (ihigh < ilow) in list_ass_slice()
642 ihigh = ilow; in list_ass_slice()
646 norig = ihigh - ilow; in list_ass_slice()
665 memcpy(recycle, &item[ilow], s); in list_ass_slice()
674 memcpy(&item[ilow], recycle, s); in list_ass_slice()
687 for (k = 0; k < n; k++, ilow++) { in list_ass_slice()
690 item[ilow] = w; in list_ass_slice()
704 PyList_SetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) in PyList_SetSlice() argument
710 return list_ass_slice((PyListObject *)a, ilow, ihigh, v); in PyList_SetSlice()