/external/python/cpython3/Include/cpython/ |
D | objimpl.h | 5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) 22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
|
D | object.h | 194 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member 297 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize))
|
/external/python/pybind11/include/pybind11/detail/ |
D | class.h | 334 if (type->tp_basicsize < instance_size) { in make_new_instance() 335 type->tp_basicsize = instance_size; in make_new_instance() 463 type->tp_basicsize = static_cast<ssize_t>(sizeof(instance)); in make_object_base_type() 524 type->tp_dictoffset = type->tp_basicsize; // place dict at the end in enable_dynamic_attributes() 525 type->tp_basicsize += (ssize_t)sizeof(PyObject *); // and allocate enough space for it in enable_dynamic_attributes() 658 type->tp_basicsize = static_cast<ssize_t>(sizeof(instance)); in make_new_python_type()
|
/external/python/cpython3/Doc/includes/ |
D | custom.c | 13 .tp_basicsize = sizeof(CustomObject),
|
D | typestruct.h | 4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
|
D | sublist.c | 35 .tp_basicsize = sizeof(SubListObject),
|
D | custom2.c | 102 .tp_basicsize = sizeof(CustomObject),
|
D | custom3.c | 152 .tp_basicsize = sizeof(CustomObject),
|
D | custom4.c | 164 .tp_basicsize = sizeof(CustomObject),
|
/external/python/cpython2/Include/ |
D | objimpl.h | 168 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) 186 ( ( (typeobj)->tp_basicsize + \
|
D | object.h | 327 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member 433 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize))
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 4 int tp_basicsize, tp_itemsize; /* For allocation */ member
|
/external/tensorflow/tensorflow/python/util/ |
D | fast_module_type.cc | 43 DCHECK_EQ(PY_MODULE_TYPE_TP_BASIC_SIZE, PyModule_Type.tp_basicsize); in FastModule_init() 231 obj.tp_basicsize = sizeof(FastModuleObject); in __anonf1d6c1870102()
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 211 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY}, 1785 size_t t_size = type->tp_basicsize; in extra_ivars() 1786 size_t b_size = base->tp_basicsize; in extra_ivars() 1960 (size_t)(Py_TYPE(obj)->tp_basicsize)); in subtype_getweakref() 2450 slotoffset = base->tp_basicsize; in type_new() 2477 type->tp_basicsize = slotoffset; in type_new() 2500 if (!(type->tp_basicsize == sizeof(PyObject) && in type_new() 3138 a->tp_basicsize == b->tp_basicsize && in equiv_structs() 3154 size = base->tp_basicsize; in same_slots_added() 3168 return size == a->tp_basicsize && size == b->tp_basicsize; in same_slots_added() [all …]
|
D | structseq.c | 500 type->tp_basicsize = sizeof(PyStructSequence)+ in PyStructSequence_InitType()
|
/external/python/cpython3/Objects/ |
D | picklebufobject.c | 210 .tp_basicsize = sizeof(PyPickleBufferObject),
|
D | typeobject.c | 448 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY}, 2218 size_t t_size = type->tp_basicsize; in extra_ivars() 2219 size_t b_size = base->tp_basicsize; in extra_ivars() 2376 <= (size_t)(type->tp_basicsize))); in subtype_getweakref() 2955 Py_ssize_t slotoffset = ctx->base->tp_basicsize; in type_new_descriptors() 2992 type->tp_basicsize = slotoffset; in type_new_descriptors() 3499 type->tp_basicsize = spec->basicsize; in PyType_FromModuleAndSpec() 4611 child->tp_basicsize == parent->tp_basicsize && in compatible_with_tp_base() 4629 size = base->tp_basicsize; in same_slots_added() 4647 return size == a->tp_basicsize && size == b->tp_basicsize; in same_slots_added() [all …]
|
D | unionobject.c | 453 .tp_basicsize = sizeof(unionobject),
|
D | methodobject.c | 376 .tp_basicsize = sizeof(PyCMethodObject),
|
D | structseq.c | 486 type->tp_basicsize = sizeof(PyStructSequence) - sizeof(PyObject *); in _PyStructSequence_InitType()
|
/external/python/cpython3/Doc/c-api/ |
D | allocation.rst | 35 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
|
D | typeobj.rst | 46 …| :c:member:`~PyTypeObject.tp_basicsize` | Py_ssize_t | … 602 .. c:member:: Py_ssize_t PyTypeObject.tp_basicsize 610 instances have the same size, given in :c:member:`~PyTypeObject.tp_basicsize`. 613 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N 627 way to get an initializer for the :c:member:`~PyTypeObject.tp_basicsize` is to use the 632 this should be taken care of by the value of :c:member:`~PyTypeObject.tp_basicsize`. Example: 635 :c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` (assuming this is the 1711 that the :c:member:`~PyTypeObject.tp_basicsize` field should account for the dictionary added to 1720 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset 1724 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:… [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 131 .. c:member:: Py_ssize_t PyTypeObject.tp_basicsize 139 instances have the same size, given in :c:member:`~PyTypeObject.tp_basicsize`. 142 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N 156 way to get an initializer for the :c:member:`~PyTypeObject.tp_basicsize` is to use the 159 in 2.1 and 2.0, the GC header size was included in :c:member:`~PyTypeObject.tp_basicsize`). 167 this should be taken care of by the value of :c:member:`~PyTypeObject.tp_basicsize`. Example: 170 :c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` (assuming this is the 898 that the :c:member:`~PyTypeObject.tp_basicsize` field should account for the dictionary added to 907 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset 911 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:… [all …]
|
D | allocation.rst | 46 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | py_buffer.cc | 473 type->tp_basicsize = sizeof(PyBufferBasePyObject); in RegisterTypes() 499 type->tp_basicsize = sizeof(PyBufferPyObject); in RegisterTypes()
|