Home
last modified time | relevance | path

Searched refs:ilow (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Drangeobject.c44 long ilow = 0, ihigh = 0, istep = 1; in range_new() local
59 &ilow, &ihigh, &istep)) in range_new()
66 n = get_len_of_range(ilow, ihigh, istep); in range_new()
76 obj->start = ilow; in range_new()
Dlistobject.c467 list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in list_slice() argument
472 if (ilow < 0) in list_slice()
473 ilow = 0; in list_slice()
474 else if (ilow > Py_SIZE(a)) in list_slice()
475 ilow = Py_SIZE(a); in list_slice()
476 if (ihigh < ilow) in list_slice()
477 ihigh = ilow; in list_slice()
480 len = ihigh - ilow; in list_slice()
485 src = a->ob_item + ilow; in list_slice()
496 PyList_GetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in PyList_GetSlice() argument
[all …]
Dtupleobject.c392 tupleslice(register PyTupleObject *a, register Py_ssize_t ilow, in tupleslice() argument
399 if (ilow < 0) in tupleslice()
400 ilow = 0; in tupleslice()
403 if (ihigh < ilow) in tupleslice()
404 ihigh = ilow; in tupleslice()
405 if (ilow == 0 && ihigh == Py_SIZE(a) && PyTuple_CheckExact(a)) { in tupleslice()
409 len = ihigh - ilow; in tupleslice()
413 src = a->ob_item + ilow; in tupleslice()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Drangeobject.c68 long ilow = 0, ihigh = 0, istep = 1; in range_new() local
83 &ilow, &ihigh, &istep)) in range_new()
90 n = get_len_of_range(ilow, ihigh, istep); in range_new()
100 obj->start = ilow; in range_new()
Dlistobject.c467 list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in list_slice() argument
472 if (ilow < 0) in list_slice()
473 ilow = 0; in list_slice()
474 else if (ilow > Py_SIZE(a)) in list_slice()
475 ilow = Py_SIZE(a); in list_slice()
476 if (ihigh < ilow) in list_slice()
477 ihigh = ilow; in list_slice()
480 len = ihigh - ilow; in list_slice()
485 src = a->ob_item + ilow; in list_slice()
496 PyList_GetSlice(PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in PyList_GetSlice() argument
[all …]
Dtupleobject.c394 tupleslice(register PyTupleObject *a, register Py_ssize_t ilow, in tupleslice() argument
401 if (ilow < 0) in tupleslice()
402 ilow = 0; in tupleslice()
405 if (ihigh < ilow) in tupleslice()
406 ihigh = ilow; in tupleslice()
407 if (ilow == 0 && ihigh == Py_SIZE(a) && PyTuple_CheckExact(a)) { in tupleslice()
411 len = ihigh - ilow; in tupleslice()
415 src = a->ob_item + ilow; in tupleslice()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Darraymodule.c607 array_slice(arrayobject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in array_slice() argument
610 if (ilow < 0) in array_slice()
611 ilow = 0; in array_slice()
612 else if (ilow > Py_SIZE(a)) in array_slice()
613 ilow = Py_SIZE(a); in array_slice()
616 if (ihigh < ilow) in array_slice()
617 ihigh = ilow; in array_slice()
620 np = (arrayobject *) newarrayobject(&Arraytype, ihigh - ilow, a->ob_descr); in array_slice()
623 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, in array_slice()
624 (ihigh-ilow) * a->ob_descr->itemsize); in array_slice()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Darraymodule.c607 array_slice(arrayobject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in array_slice() argument
610 if (ilow < 0) in array_slice()
611 ilow = 0; in array_slice()
612 else if (ilow > Py_SIZE(a)) in array_slice()
613 ilow = Py_SIZE(a); in array_slice()
616 if (ihigh < ilow) in array_slice()
617 ihigh = ilow; in array_slice()
620 np = (arrayobject *) newarrayobject(&Arraytype, ihigh - ilow, a->ob_descr); in array_slice()
623 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, in array_slice()
624 (ihigh-ilow) * a->ob_descr->itemsize); in array_slice()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dbltinmodule.c1789 PyObject *ilow = NULL; in handle_range_longs() local
1808 if (!PyArg_UnpackTuple(args, "range", 1, 3, &ilow, &ihigh, &istep)) { in handle_range_longs()
1817 assert(ilow != NULL); in handle_range_longs()
1820 ihigh = ilow; in handle_range_longs()
1821 ilow = NULL; in handle_range_longs()
1831 if (ilow == NULL) { in handle_range_longs()
1836 low = get_range_long_argument(ilow, "start"); in handle_range_longs()
1946 long ilow = 0, ihigh = 0, istep = 1; in builtin_range() local
1963 &ilow, &ihigh, &istep)) { in builtin_range()
1974 bign = get_len_of_range(ilow, ihigh, istep); in builtin_range()
[all …]
Dceval.c4383 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in apply_slice() local
4384 if (!_PyEval_SliceIndex(v, &ilow)) in apply_slice()
4388 return PySequence_GetSlice(u, ilow, ihigh); in apply_slice()
4410 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in assign_slice() local
4411 if (!_PyEval_SliceIndex(v, &ilow)) in assign_slice()
4416 return PySequence_DelSlice(u, ilow, ihigh); in assign_slice()
4418 return PySequence_SetSlice(u, ilow, ihigh, x); in assign_slice()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dbltinmodule.c1799 PyObject *ilow = NULL; in handle_range_longs() local
1818 if (!PyArg_UnpackTuple(args, "range", 1, 3, &ilow, &ihigh, &istep)) { in handle_range_longs()
1827 assert(ilow != NULL); in handle_range_longs()
1830 ihigh = ilow; in handle_range_longs()
1831 ilow = NULL; in handle_range_longs()
1841 if (ilow == NULL) { in handle_range_longs()
1846 low = get_range_long_argument(ilow, "start"); in handle_range_longs()
1956 long ilow = 0, ihigh = 0, istep = 1; in builtin_range() local
1973 &ilow, &ihigh, &istep)) { in builtin_range()
1984 bign = get_len_of_range(ilow, ihigh, istep); in builtin_range()
[all …]
Dceval.c4405 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in apply_slice() local
4406 if (!_PyEval_SliceIndex(v, &ilow)) in apply_slice()
4410 return PySequence_GetSlice(u, ilow, ihigh); in apply_slice()
4432 Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; in assign_slice() local
4433 if (!_PyEval_SliceIndex(v, &ilow)) in assign_slice()
4438 return PySequence_DelSlice(u, ilow, ihigh); in assign_slice()
4440 return PySequence_SetSlice(u, ilow, ihigh, x); in assign_slice()