Lines Matching refs:ihigh
819 array_slice(arrayobject *a, Py_ssize_t ilow, Py_ssize_t ihigh)
828 if (ihigh < 0)
829 ihigh = 0;
830 if (ihigh < ilow)
831 ihigh = ilow;
832 else if (ihigh > Py_SIZE(a))
833 ihigh = Py_SIZE(a);
834 np = (arrayobject *) newarrayobject(state->ArrayType, ihigh - ilow, a->ob_descr);
837 if (ihigh > ilow) {
839 (ihigh-ilow) * a->ob_descr->itemsize);
936 array_del_slice(arrayobject *a, Py_ssize_t ilow, Py_ssize_t ihigh)
944 if (ihigh < 0)
945 ihigh = 0;
946 if (ihigh < ilow)
947 ihigh = ilow;
948 else if (ihigh > Py_SIZE(a))
949 ihigh = Py_SIZE(a);
951 d = ihigh-ilow;
961 memmove(item + (ihigh-d)*a->ob_descr->itemsize,
962 item + ihigh*a->ob_descr->itemsize,
963 (Py_SIZE(a)-ihigh)*a->ob_descr->itemsize);