Home
last modified time | relevance | path

Searched refs:_PyObject_SIZE (Results 1 – 25 of 33) sorted by relevance

12

/external/python/cpython2/Include/
Dobjimpl.h168 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) macro
194 (PyObject *) PyObject_MALLOC( _PyObject_SIZE(typeobj) ), (typeobj)) )
/external/python/cpython3/Include/cpython/
Dobjimpl.h9 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) macro
/external/python/cpython2/Modules/_io/
Dbytesio.c813 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
Dbufferedio.c393 res = _PyObject_SIZE(Py_TYPE(self)); in buffered_sizeof()
/external/python/cpython3/Modules/_io/
Dbytesio.c968 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
Dbufferedio.c408 res = _PyObject_SIZE(Py_TYPE(self)); in buffered_sizeof()
/external/python/cpython3/Modules/
Ditertoolsmodule.c2192 res = _PyObject_SIZE(Py_TYPE(lz)); in product_sizeof()
2521 res = _PyObject_SIZE(Py_TYPE(co)); in combinations_sizeof()
2853 res = _PyObject_SIZE(Py_TYPE(co)); in cwr_sizeof()
3194 res = _PyObject_SIZE(Py_TYPE(po)); in permutations_sizeof()
Dparsermodule.c365 res = _PyObject_SIZE(Py_TYPE(st)) + _PyNode_SizeOf(st->st_node); in parser_sizeof()
Dmmapmodule.c749 res = _PyObject_SIZE(Py_TYPE(self)); in mmap__sizeof__method()
Dgcmodule.c2264 PyObject *op = _PyObject_GC_Malloc(_PyObject_SIZE(tp)); in _PyObject_GC_New()
D_struct.c2020 size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode); in s_sizeof()
D_collectionsmodule.c1509 res = _PyObject_SIZE(Py_TYPE(deque)); in deque_sizeof()
Darraymodule.c1741 res = _PyObject_SIZE(Py_TYPE(self)) + self->allocated * self->ob_descr->itemsize; in array_array___sizeof___impl()
/external/python/cpython2/Modules/
Dgcmodule.c1521 PyObject *op = _PyObject_GC_Malloc(_PyObject_SIZE(tp)); in _PyObject_GC_New()
Dmmapmodule.c652 res = _PyObject_SIZE(Py_TYPE(self)); in mmap__sizeof__method()
D_struct.c1742 size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode) * (self->s_len + 1); in s_sizeof()
D_collectionsmodule.c1114 res = _PyObject_SIZE(Py_TYPE(deque)); in deque_sizeof()
Darraymodule.c1566 res = _PyObject_SIZE(Py_TYPE(self)) + self->allocated * self->ob_descr->itemsize; in array_sizeof()
/external/python/cpython3/Objects/
Dcodeobject.c593 Py_ssize_t res = _PyObject_SIZE(Py_TYPE(co)); in code_sizeof()
Dobject.c165 PyObject *op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()
Dbytearrayobject.c2195 res = _PyObject_SIZE(Py_TYPE(self)) + self->ob_alloc * sizeof(char); in bytearray_sizeof_impl()
Dsetobject.c1938 res = _PyObject_SIZE(Py_TYPE(so)); in set_sizeof()
/external/python/cpython2/Objects/
Dobject.c244 op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()
Dsetobject.c1990 res = _PyObject_SIZE(Py_TYPE(so)); in set_sizeof()
Dlistobject.c2472 res = _PyObject_SIZE(Py_TYPE(self)) + self->allocated * sizeof(void*); in list_sizeof()

12