Home
last modified time | relevance | path

Searched refs:tp_basicsize (Results 1 – 25 of 45) sorted by relevance

12

/external/python/cpython3/Include/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
Dobject.h194 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/
Dclass.h334 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/
Dcustom.c13 .tp_basicsize = sizeof(CustomObject),
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
Dsublist.c35 .tp_basicsize = sizeof(SubListObject),
Dcustom2.c102 .tp_basicsize = sizeof(CustomObject),
Dcustom3.c152 .tp_basicsize = sizeof(CustomObject),
Dcustom4.c164 .tp_basicsize = sizeof(CustomObject),
/external/python/cpython2/Include/
Dobjimpl.h168 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
186 ( ( (typeobj)->tp_basicsize + \
Dobject.h327 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
433 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize))
/external/python/cpython2/Doc/includes/
Dtypestruct.h4 int tp_basicsize, tp_itemsize; /* For allocation */ member
/external/tensorflow/tensorflow/python/util/
Dfast_module_type.cc43 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/
Dtypeobject.c211 {"__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 …]
Dstructseq.c500 type->tp_basicsize = sizeof(PyStructSequence)+ in PyStructSequence_InitType()
/external/python/cpython3/Objects/
Dpicklebufobject.c210 .tp_basicsize = sizeof(PyPickleBufferObject),
Dtypeobject.c448 {"__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 …]
Dunionobject.c453 .tp_basicsize = sizeof(unionobject),
Dmethodobject.c376 .tp_basicsize = sizeof(PyCMethodObject),
Dstructseq.c486 type->tp_basicsize = sizeof(PyStructSequence) - sizeof(PyObject *); in _PyStructSequence_InitType()
/external/python/cpython3/Doc/c-api/
Dallocation.rst35 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
Dtypeobj.rst46 …| :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/
Dtypeobj.rst131 .. 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 …]
Dallocation.rst46 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc473 type->tp_basicsize = sizeof(PyBufferBasePyObject); in RegisterTypes()
499 type->tp_basicsize = sizeof(PyBufferPyObject); in RegisterTypes()

12