/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | sliceobject.c | 134 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) in PySlice_GetIndicesEx() argument 179 *slicelength = 0; in PySlice_GetIndicesEx() 182 *slicelength = (*stop-*start+1)/(*step)+1; in PySlice_GetIndicesEx() 185 *slicelength = (*stop-*start-1)/(*step)+1; in PySlice_GetIndicesEx() 254 Py_ssize_t ilen, start, stop, step, slicelength; in slice_indices() local 263 &step, &slicelength) < 0) { in slice_indices()
|
D | bufferobject.c | 504 Py_ssize_t start, stop, step, slicelength, cur, i; in buffer_subscript() local 507 &start, &stop, &step, &slicelength) < 0) { in buffer_subscript() 511 if (slicelength <= 0) in buffer_subscript() 519 char *result_buf = (char *)PyMem_Malloc(slicelength); in buffer_subscript() 524 for (cur = start, i = 0; i < slicelength; in buffer_subscript() 530 slicelength); in buffer_subscript() 691 Py_ssize_t start, stop, step, slicelength; in buffer_ass_subscript() local 694 &start, &stop, &step, &slicelength) < 0) in buffer_ass_subscript() 700 if (othersize != slicelength) { in buffer_ass_subscript() 707 if (slicelength == 0) in buffer_ass_subscript() [all …]
|
D | listobject.c | 2556 Py_ssize_t start, stop, step, slicelength, cur, i; in list_subscript() local 2562 &start, &stop, &step, &slicelength) < 0) { in list_subscript() 2566 if (slicelength <= 0) { in list_subscript() 2573 result = PyList_New(slicelength); in list_subscript() 2578 for (cur = start, i = 0; i < slicelength; in list_subscript() 2608 Py_ssize_t start, stop, step, slicelength; in list_ass_subscript() local 2611 &start, &stop, &step, &slicelength) < 0) { in list_ass_subscript() 2630 if (slicelength <= 0) in list_ass_subscript() 2635 start = stop + step*(slicelength - 1) - 1; in list_ass_subscript() 2639 assert((size_t)slicelength <= in list_ass_subscript() [all …]
|
D | tupleobject.c | 711 Py_ssize_t start, stop, step, slicelength, cur, i; in tuplesubscript() local 718 &start, &stop, &step, &slicelength) < 0) { in tuplesubscript() 722 if (slicelength <= 0) { in tuplesubscript() 726 slicelength == PyTuple_GET_SIZE(self) && in tuplesubscript() 732 result = PyTuple_New(slicelength); in tuplesubscript() 737 for (cur = start, i = 0; i < slicelength; in tuplesubscript()
|
D | memoryobject.c | 585 Py_ssize_t start, stop, step, slicelength; in memory_subscript() local 588 &start, &stop, &step, &slicelength) < 0) { in memory_subscript() 608 newview.len = slicelength * newview.itemsize; in memory_subscript() 611 newview.shape[0] = slicelength; in memory_subscript()
|
D | bytearrayobject.c | 438 Py_ssize_t start, stop, step, slicelength, cur, i; in bytearray_subscript() local 441 &start, &stop, &step, &slicelength) < 0) { in bytearray_subscript() 445 if (slicelength <= 0) in bytearray_subscript() 449 slicelength); in bytearray_subscript() 453 char *result_buf = (char *)PyMem_Malloc(slicelength); in bytearray_subscript() 459 for (cur = start, i = 0; i < slicelength; in bytearray_subscript() 463 result = PyByteArray_FromStringAndSize(result_buf, slicelength); in bytearray_subscript()
|
D | stringobject.c | 1291 Py_ssize_t start, stop, step, slicelength, cur, i; in string_subscript() local 1298 &start, &stop, &step, &slicelength) < 0) { in string_subscript() 1302 if (slicelength <= 0) { in string_subscript() 1306 slicelength == PyString_GET_SIZE(self) && in string_subscript() 1314 slicelength); in string_subscript() 1318 result_buf = (char *)PyMem_Malloc(slicelength); in string_subscript() 1322 for (cur = start, i = 0; i < slicelength; in string_subscript() 1328 slicelength); in string_subscript()
|
D | unicodeobject.c | 7894 Py_ssize_t start, stop, step, slicelength, cur, i; in unicode_subscript() local 7900 &start, &stop, &step, &slicelength) < 0) { in unicode_subscript() 7904 if (slicelength <= 0) { in unicode_subscript() 7906 } else if (start == 0 && step == 1 && slicelength == self->length && in unicode_subscript() 7911 return PyUnicode_FromUnicode(self->str + start, slicelength); in unicode_subscript() 7914 result_buf = (Py_UNICODE *)PyObject_MALLOC(slicelength* in unicode_subscript() 7920 for (cur = start, i = 0; i < slicelength; cur += step, i++) { in unicode_subscript() 7924 result = PyUnicode_FromUnicode(result_buf, slicelength); in unicode_subscript()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | sliceobject.c | 134 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) in PySlice_GetIndicesEx() argument 179 *slicelength = 0; in PySlice_GetIndicesEx() 182 *slicelength = (*stop-*start+1)/(*step)+1; in PySlice_GetIndicesEx() 185 *slicelength = (*stop-*start-1)/(*step)+1; in PySlice_GetIndicesEx() 255 Py_ssize_t ilen, start, stop, step, slicelength; in slice_indices() local 264 &step, &slicelength) < 0) { in slice_indices()
|
D | bufferobject.c | 514 Py_ssize_t start, stop, step, slicelength, cur, i; in buffer_subscript() local 517 &start, &stop, &step, &slicelength) < 0) { in buffer_subscript() 521 if (slicelength <= 0) in buffer_subscript() 529 char *result_buf = (char *)PyMem_Malloc(slicelength); in buffer_subscript() 534 for (cur = start, i = 0; i < slicelength; in buffer_subscript() 540 slicelength); in buffer_subscript() 701 Py_ssize_t start, stop, step, slicelength; in buffer_ass_subscript() local 704 &start, &stop, &step, &slicelength) < 0) in buffer_ass_subscript() 710 if (othersize != slicelength) { in buffer_ass_subscript() 717 if (slicelength == 0) in buffer_ass_subscript() [all …]
|
D | listobject.c | 2557 Py_ssize_t start, stop, step, slicelength, cur, i; in list_subscript() local 2563 &start, &stop, &step, &slicelength) < 0) { in list_subscript() 2567 if (slicelength <= 0) { in list_subscript() 2574 result = PyList_New(slicelength); in list_subscript() 2579 for (cur = start, i = 0; i < slicelength; in list_subscript() 2609 Py_ssize_t start, stop, step, slicelength; in list_ass_subscript() local 2612 &start, &stop, &step, &slicelength) < 0) { in list_ass_subscript() 2631 if (slicelength <= 0) in list_ass_subscript() 2636 start = stop + step*(slicelength - 1) - 1; in list_ass_subscript() 2640 assert((size_t)slicelength <= in list_ass_subscript() [all …]
|
D | tupleobject.c | 713 Py_ssize_t start, stop, step, slicelength, cur, i; in tuplesubscript() local 720 &start, &stop, &step, &slicelength) < 0) { in tuplesubscript() 724 if (slicelength <= 0) { in tuplesubscript() 728 slicelength == PyTuple_GET_SIZE(self) && in tuplesubscript() 734 result = PyTuple_New(slicelength); in tuplesubscript() 739 for (cur = start, i = 0; i < slicelength; in tuplesubscript()
|
D | memoryobject.c | 585 Py_ssize_t start, stop, step, slicelength; in memory_subscript() local 588 &start, &stop, &step, &slicelength) < 0) { in memory_subscript() 608 newview.len = slicelength * newview.itemsize; in memory_subscript() 611 newview.shape[0] = slicelength; in memory_subscript()
|
D | bytearrayobject.c | 438 Py_ssize_t start, stop, step, slicelength, cur, i; in bytearray_subscript() local 441 &start, &stop, &step, &slicelength) < 0) { in bytearray_subscript() 445 if (slicelength <= 0) in bytearray_subscript() 449 slicelength); in bytearray_subscript() 453 char *result_buf = (char *)PyMem_Malloc(slicelength); in bytearray_subscript() 459 for (cur = start, i = 0; i < slicelength; in bytearray_subscript() 463 result = PyByteArray_FromStringAndSize(result_buf, slicelength); in bytearray_subscript()
|
D | stringobject.c | 1308 Py_ssize_t start, stop, step, slicelength, cur, i; in string_subscript() local 1315 &start, &stop, &step, &slicelength) < 0) { in string_subscript() 1319 if (slicelength <= 0) { in string_subscript() 1323 slicelength == PyString_GET_SIZE(self) && in string_subscript() 1331 slicelength); in string_subscript() 1335 result_buf = (char *)PyMem_Malloc(slicelength); in string_subscript() 1339 for (cur = start, i = 0; i < slicelength; in string_subscript() 1345 slicelength); in string_subscript()
|
D | unicodeobject.c | 7998 Py_ssize_t start, stop, step, slicelength, cur, i; in unicode_subscript() local 8004 &start, &stop, &step, &slicelength) < 0) { in unicode_subscript() 8008 if (slicelength <= 0) { in unicode_subscript() 8010 } else if (start == 0 && step == 1 && slicelength == self->length && in unicode_subscript() 8015 return PyUnicode_FromUnicode(self->str + start, slicelength); in unicode_subscript() 8018 result_buf = (Py_UNICODE *)PyObject_MALLOC(slicelength* in unicode_subscript() 8024 for (cur = start, i = 0; i < slicelength; cur += step, i++) { in unicode_subscript() 8028 result = PyUnicode_FromUnicode(result_buf, slicelength); in unicode_subscript()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | arraymodule.c | 1672 Py_ssize_t start, stop, step, slicelength, cur, i; in array_subscr() local 1678 &start, &stop, &step, &slicelength) < 0) { in array_subscr() 1682 if (slicelength <= 0) { in array_subscr() 1687 slicelength, self->ob_descr); in array_subscr() 1692 slicelength * itemsize); in array_subscr() 1696 result = newarrayobject(&Arraytype, slicelength, self->ob_descr); in array_subscr() 1701 for (cur = start, i = 0; i < slicelength; in array_subscr() 1721 Py_ssize_t start, stop, step, slicelength, needed; in array_ass_subscr() local 1742 slicelength = 1; in array_ass_subscr() 1750 &step, &slicelength) < 0) { in array_ass_subscr() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | arraymodule.c | 1657 Py_ssize_t start, stop, step, slicelength, cur, i; in array_subscr() local 1663 &start, &stop, &step, &slicelength) < 0) { in array_subscr() 1667 if (slicelength <= 0) { in array_subscr() 1672 slicelength, self->ob_descr); in array_subscr() 1677 slicelength * itemsize); in array_subscr() 1681 result = newarrayobject(&Arraytype, slicelength, self->ob_descr); in array_subscr() 1686 for (cur = start, i = 0; i < slicelength; in array_subscr() 1706 Py_ssize_t start, stop, step, slicelength, needed; in array_ass_subscr() local 1727 slicelength = 1; in array_ass_subscr() 1735 &step, &slicelength) < 0) { in array_ass_subscr() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | sliceobject.h | 39 Py_ssize_t *step, Py_ssize_t *slicelength);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | sliceobject.h | 39 Py_ssize_t *step, Py_ssize_t *slicelength);
|