Home
last modified time | relevance | path

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

123

/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
/aosp_15_r20/external/python/cpython3/Include/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/cpython/
Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
/aosp_15_r20/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))
/aosp_15_r20/external/tensorflow/tensorflow/python/util/
H A Dfast_module_type.cc48 DCHECK_EQ(PY_MODULE_TYPE_TP_BASIC_SIZE, PyModule_Type.tp_basicsize); in FastModule_init()
236 obj.tp_basicsize = sizeof(FastModuleObject); in __anon529087110102()
/aosp_15_r20/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 …]
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/python/
H A Dsharded_device_array.cc175 type->tp_basicsize = sizeof(ShardedDeviceArrayBaseObject); in RegisterTypes()
201 type->tp_basicsize = sizeof(ShardedDeviceArrayObject); in RegisterTypes()
H A Dpy_buffer.cc505 type->tp_basicsize = sizeof(PyBufferBasePyObject); in RegisterTypes()
531 type->tp_basicsize = sizeof(PyBufferPyObject); in RegisterTypes()
/aosp_15_r20/external/python/cpython3/Objects/
Dtypeobject.c413 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
2235 size_t t_size = type->tp_basicsize; in extra_ivars()
2236 size_t b_size = base->tp_basicsize; in extra_ivars()
2397 <= (size_t)(type->tp_basicsize))); in subtype_getweakref()
2968 Py_ssize_t slotoffset = ctx->base->tp_basicsize; in type_new_descriptors()
3005 type->tp_basicsize = slotoffset; in type_new_descriptors()
3523 type->tp_basicsize = spec->basicsize; in PyType_FromModuleAndSpec()
4685 child->tp_basicsize == parent->tp_basicsize && in compatible_with_tp_base()
4703 size = base->tp_basicsize; in same_slots_added()
4721 return size == a->tp_basicsize && size == b->tp_basicsize; in same_slots_added()
[all …]
Dclassobject.c327 .tp_basicsize = sizeof(PyMethodObject),
531 .tp_basicsize = sizeof(PyInstanceMethodObject),
Dpicklebufobject.c210 .tp_basicsize = sizeof(PyPickleBufferObject),
/aosp_15_r20/external/python/cpython3/Doc/includes/
Dcustom.c13 .tp_basicsize = sizeof(CustomObject),
Dsublist.c35 .tp_basicsize = sizeof(SubListObject),
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
Dcustom2.c102 .tp_basicsize = sizeof(CustomObject),
Dcustom3.c152 .tp_basicsize = sizeof(CustomObject),
Dcustom4.c164 .tp_basicsize = sizeof(CustomObject),
/aosp_15_r20/external/python/cpython2/Doc/includes/
Dtypestruct.h4 int tp_basicsize, tp_itemsize; /* For allocation */ member
/aosp_15_r20/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 …]
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dtypeobj.rst46 …| :c:member:`~PyTypeObject.tp_basicsize` | :c:type:`Py_ssize_t` | …
609 .. c:member:: Py_ssize_t PyTypeObject.tp_basicsize
617 instances have the same size, given in :c:member:`~PyTypeObject.tp_basicsize`.
620 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N
634 way to get an initializer for the :c:member:`~PyTypeObject.tp_basicsize` is to use the
639 this should be taken care of by the value of :c:member:`~PyTypeObject.tp_basicsize`. Example:
642 :c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` (assuming this is the
1724 that the :c:member:`~PyTypeObject.tp_basicsize` field should account for the dictionary added to
2504 should be ``tp_basicsize + nitems*tp_itemsize``, rounded up to a multiple of
2506 should be :c:member:`~PyTypeObject.tp_basicsize`.
[all …]
Dallocation.rst35 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
/aosp_15_r20/external/pytorch/torch/csrc/dynamo/
H A Deval_frame.c140 .tp_basicsize = sizeof(THPPyInterpreterFrame),
733 .tp_basicsize = sizeof(THPPyInterpreterFrame),

123