Home
last modified time | relevance | path

Searched refs:Py_SIZE (Results 1 – 25 of 53) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Darraymodule.c56 Py_SIZE(self) < newsize + 16 && in array_resize()
58 Py_SIZE(self) = newsize; in array_resize()
74 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize; in array_resize()
87 Py_SIZE(self) = newsize; in array_resize()
438 Py_SIZE(op) = size; in newarrayobject()
458 assert(i>=0 && i<Py_SIZE(ap)); in getarrayitem()
466 Py_ssize_t n = Py_SIZE(self); in ins1()
521 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
533 for (i = 0; i < Py_SIZE(va) && i < Py_SIZE(wa); i++) { in array_richcompare()
552 Py_ssize_t vs = Py_SIZE(va); in array_richcompare()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Darraymodule.c56 Py_SIZE(self) < newsize + 16 && in array_resize()
58 Py_SIZE(self) = newsize; in array_resize()
74 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize; in array_resize()
87 Py_SIZE(self) = newsize; in array_resize()
438 Py_SIZE(op) = size; in newarrayobject()
458 assert(i>=0 && i<Py_SIZE(ap)); in getarrayitem()
466 Py_ssize_t n = Py_SIZE(self); in ins1()
521 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
533 for (i = 0; i < Py_SIZE(va) && i < Py_SIZE(wa); i++) { in array_richcompare()
552 Py_ssize_t vs = Py_SIZE(va); in array_richcompare()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dtupleobject.c74 Py_SIZE(op) = size; in PyTuple_New()
118 return Py_SIZE(op); in PyTuple_Size()
128 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_GetItem()
145 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_SetItem()
167 n = Py_SIZE(t); in _PyTuple_MaybeUntrack()
216 register Py_ssize_t len = Py_SIZE(op); in tupledealloc()
247 for (i = 0; i < Py_SIZE(op); i++) { in tupleprint()
256 i = Py_SIZE(op); in tupleprint()
272 n = Py_SIZE(v); in tuplerepr()
345 register Py_ssize_t len = Py_SIZE(v); in tuplehash()
[all …]
Dlistobject.c37 Py_SIZE(self) = newsize; in list_resize()
70 Py_SIZE(self) = newsize; in list_resize()
159 Py_SIZE(op) = size; in PyList_New()
173 return Py_SIZE(op); in PyList_Size()
185 if (i < 0 || i >= Py_SIZE(op)) { in PyList_GetItem()
209 if (i < 0 || i >= Py_SIZE(op)) { in PyList_SetItem()
225 Py_ssize_t i, n = Py_SIZE(self); in ins1()
307 i = Py_SIZE(op); in list_dealloc()
339 for (i = 0; i < Py_SIZE(op); i++) { in list_print()
373 if (Py_SIZE(v) == 0) { in list_repr()
[all …]
Dbytearrayobject.c31 if (Py_SIZE(arg) != 1) { in _getbytevalue()
71 return Py_SIZE(self); in bytearray_buffer_getreadbuf()
83 return Py_SIZE(self); in bytearray_buffer_getwritebuf()
90 *lenp = Py_SIZE(self); in bytearray_buffer_getsegcount()
103 return Py_SIZE(self); in bytearray_buffer_getcharbuf()
116 ret = PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags); in bytearray_getbuffer()
198 Py_SIZE(new) = size; in PyByteArray_FromStringAndSize()
233 if (size == Py_SIZE(self)) { in PyByteArray_Resize()
246 Py_SIZE(self) = size; in PyByteArray_Resize()
266 Py_SIZE(self) = size; in PyByteArray_Resize()
[all …]
Dstringobject.c787 return Py_SIZE(op); in PyString_Size()
872 Py_ssize_t size = Py_SIZE(op); in string_print()
895 if (memchr(op->ob_sval, '\'', Py_SIZE(op)) && in string_print()
896 !memchr(op->ob_sval, '"', Py_SIZE(op))) in string_print()
899 str_len = Py_SIZE(op); in string_print()
931 if (Py_SIZE(op) > (PY_SSIZE_T_MAX - 2)/4) { in PyString_Repr()
936 newsize = 2 + 4*Py_SIZE(op); in PyString_Repr()
950 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr()
951 !memchr(op->ob_sval, '"', Py_SIZE(op))) in PyString_Repr()
956 for (i = 0; i < Py_SIZE(op); i++) { in PyString_Repr()
[all …]
Dstructseq.c16 #define VISIBLE_SIZE(op) Py_SIZE(op)
37 Py_SIZE(obj) = VISIBLE_SIZE_TP(type); in PyStructSequence_New()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dtupleobject.c74 Py_SIZE(op) = size; in PyTuple_New()
118 return Py_SIZE(op); in PyTuple_Size()
128 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_GetItem()
145 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_SetItem()
167 n = Py_SIZE(t); in _PyTuple_MaybeUntrack()
214 register Py_ssize_t len = Py_SIZE(op); in tupledealloc()
245 for (i = 0; i < Py_SIZE(op); i++) { in tupleprint()
254 i = Py_SIZE(op); in tupleprint()
270 n = Py_SIZE(v); in tuplerepr()
343 register Py_ssize_t len = Py_SIZE(v); in tuplehash()
[all …]
Dlistobject.c37 Py_SIZE(self) = newsize; in list_resize()
70 Py_SIZE(self) = newsize; in list_resize()
159 Py_SIZE(op) = size; in PyList_New()
173 return Py_SIZE(op); in PyList_Size()
185 if (i < 0 || i >= Py_SIZE(op)) { in PyList_GetItem()
209 if (i < 0 || i >= Py_SIZE(op)) { in PyList_SetItem()
225 Py_ssize_t i, n = Py_SIZE(self); in ins1()
307 i = Py_SIZE(op); in list_dealloc()
339 for (i = 0; i < Py_SIZE(op); i++) { in list_print()
373 if (Py_SIZE(v) == 0) { in list_repr()
[all …]
Dlongobject.c65 Py_ssize_t j = ABS(Py_SIZE(v)); in long_normalize()
71 Py_SIZE(v) = (Py_SIZE(v) < 0) ? -(i) : i; in long_normalize()
176 Py_SIZE(v) = ndigits; in PyLong_FromUnsignedLong()
223 Py_SIZE(v) = -(Py_SIZE(v)); in PyLong_FromDouble()
293 i = Py_SIZE(v); in PyLong_AsLongAndOverflow()
428 i = Py_SIZE(v); in PyLong_AsUnsignedLong()
486 return Py_SIZE(v) == 0 ? 0 : (Py_SIZE(v) < 0 ? -1 : 1); in _PyLong_Sign()
498 ndigits = ABS(Py_SIZE(v)); in _PyLong_NumBits()
628 Py_SIZE(v) = is_signed ? -idigit : idigit; in _PyLong_FromByteArray()
649 if (Py_SIZE(v) < 0) { in _PyLong_AsByteArray()
[all …]
Dbytearrayobject.c31 if (Py_SIZE(arg) != 1) { in _getbytevalue()
71 return Py_SIZE(self); in bytearray_buffer_getreadbuf()
83 return Py_SIZE(self); in bytearray_buffer_getwritebuf()
90 *lenp = Py_SIZE(self); in bytearray_buffer_getsegcount()
103 return Py_SIZE(self); in bytearray_buffer_getcharbuf()
116 ret = PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags); in bytearray_getbuffer()
198 Py_SIZE(new) = size; in PyByteArray_FromStringAndSize()
233 if (size == Py_SIZE(self)) { in PyByteArray_Resize()
246 Py_SIZE(self) = size; in PyByteArray_Resize()
266 Py_SIZE(self) = size; in PyByteArray_Resize()
[all …]
Dstringobject.c783 return Py_SIZE(op); in PyString_Size()
868 Py_ssize_t size = Py_SIZE(op); in string_print()
891 if (memchr(op->ob_sval, '\'', Py_SIZE(op)) && in string_print()
892 !memchr(op->ob_sval, '"', Py_SIZE(op))) in string_print()
895 str_len = Py_SIZE(op); in string_print()
925 size_t newsize = 2 + 4 * Py_SIZE(op); in PyString_Repr()
927 if (newsize > PY_SSIZE_T_MAX || newsize / 4 != Py_SIZE(op)) { in PyString_Repr()
945 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr()
946 !memchr(op->ob_sval, '"', Py_SIZE(op))) in PyString_Repr()
951 for (i = 0; i < Py_SIZE(op); i++) { in PyString_Repr()
[all …]
Dstructseq.c16 #define VISIBLE_SIZE(op) Py_SIZE(op)
37 Py_SIZE(obj) = VISIBLE_SIZE_TP(type); in PyStructSequence_New()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c65 Py_ssize_t j = ABS(Py_SIZE(v)); in long_normalize()
71 Py_SIZE(v) = (Py_SIZE(v) < 0) ? -(i) : i; in long_normalize()
176 Py_SIZE(v) = ndigits; in PyLong_FromUnsignedLong()
223 Py_SIZE(v) = -(Py_SIZE(v)); in PyLong_FromDouble()
293 i = Py_SIZE(v); in PyLong_AsLongAndOverflow()
428 i = Py_SIZE(v); in PyLong_AsUnsignedLong()
486 return Py_SIZE(v) == 0 ? 0 : (Py_SIZE(v) < 0 ? -1 : 1); in _PyLong_Sign()
498 ndigits = ABS(Py_SIZE(v)); in _PyLong_NumBits()
628 Py_SIZE(v) = is_signed ? -idigit : idigit; in _PyLong_FromByteArray()
649 if (Py_SIZE(v) < 0) { in _PyLong_AsByteArray()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c61 Py_ssize_t j = ABS(Py_SIZE(v)); in long_normalize()
67 Py_SIZE(v) = (Py_SIZE(v) < 0) ? -(i) : i; in long_normalize()
172 Py_SIZE(v) = ndigits; in PyLong_FromUnsignedLong()
219 Py_SIZE(v) = -(Py_SIZE(v)); in PyLong_FromDouble()
289 i = Py_SIZE(v); in PyLong_AsLongAndOverflow()
442 i = Py_SIZE(v); in PyLong_AsUnsignedLong()
500 return Py_SIZE(v) == 0 ? 0 : (Py_SIZE(v) < 0 ? -1 : 1); in _PyLong_Sign()
512 ndigits = ABS(Py_SIZE(v)); in _PyLong_NumBits()
642 Py_SIZE(v) = is_signed ? -idigit : idigit; in _PyLong_FromByteArray()
663 if (Py_SIZE(v) < 0) { in _PyLong_AsByteArray()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dbytearrayobject.h49 Py_SIZE(self) ? ((PyByteArrayObject *)(self))->ob_bytes : _PyByteArray_empty_string)
50 #define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)),Py_SIZE(self))
Dtupleobject.h51 #define PyTuple_GET_SIZE(op) Py_SIZE(op)
Dlistobject.h63 #define PyList_GET_SIZE(op) Py_SIZE(op)
Dstringobject.h92 #define PyString_GET_SIZE(op) Py_SIZE(op)
Dobjimpl.h166 ( Py_SIZE(op) = (size), PyObject_INIT((op), (typeobj)) )
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dbytearrayobject.h49 Py_SIZE(self) ? ((PyByteArrayObject *)(self))->ob_bytes : _PyByteArray_empty_string)
50 #define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)),Py_SIZE(self))
Dtupleobject.h51 #define PyTuple_GET_SIZE(op) Py_SIZE(op)
Dlistobject.h63 #define PyList_GET_SIZE(op) Py_SIZE(op)
Dstringobject.h92 #define PyString_GET_SIZE(op) Py_SIZE(op)
Dobjimpl.h166 ( Py_SIZE(op) = (size), PyObject_INIT((op), (typeobj)) )

123