Searched refs:tp_itemsize (Results 1 – 25 of 27) sorted by relevance
12
/external/python/cpython3/Doc/includes/newtypes/ |
D | custom.c | 14 .tp_itemsize = 0,
|
D | sublist.c | 36 .tp_itemsize = 0,
|
D | custom2.c | 97 .tp_itemsize = 0,
|
D | custom3.c | 137 .tp_itemsize = 0,
|
D | custom4.c | 153 .tp_itemsize = 0,
|
/external/python/cpython3/Include/cpython/ |
D | objimpl.h | 25 size += _Py_STATIC_CAST(size_t, nitems) * _Py_STATIC_CAST(size_t, type->tp_itemsize); in _PyObject_VAR_SIZE()
|
D | object.h | 150 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
|
/external/python/cpython3/Doc/c-api/ |
D | allocation.rst | 46 given by the :c:member:`~PyTypeObject.tp_itemsize` field of
|
D | type.rst | 423 Used to set :c:member:`PyTypeObject.tp_itemsize`. 424 See ``tp_itemsize`` documentation for caveats. 426 If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited. 434 :c:member:`~PyTypeObject.tp_itemsize`).
|
D | typeobj.rst | 48 …| :c:member:`~PyTypeObject.tp_itemsize` | :c:type:`Py_ssize_t` | … 490 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e. 582 :c:member:`~PyTypeObject.tp_itemsize`). 590 Py_ssize_t PyTypeObject.tp_itemsize 595 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero 596 :c:member:`~PyTypeObject.tp_itemsize` field. For a type with fixed-length instances, all 601 times :c:member:`~PyTypeObject.tp_itemsize`, where N is the "length" of the object. The value of 620 suppose a type implements an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is 630 non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to set 631 :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a subtype (though this [all …]
|
D | gcsupport.rst | 80 :c:type:`PyVarObject` and :c:member:`~PyTypeObject.tp_itemsize`
|
/external/python/cpython3/Python/ |
D | optimizer.c | 124 .tp_itemsize = 0, 429 .tp_itemsize = 1, 1333 .tp_itemsize = 0, 1361 .tp_itemsize = 1, 1420 .tp_itemsize = 0,
|
D | hamt.c | 2539 .tp_itemsize = 0, \
|
/external/tensorflow/tensorflow/python/util/ |
D | fast_module_type.cc | 237 obj.tp_itemsize = 0; in __anonb42701910102()
|
/external/python/cpython3/Objects/ |
D | typeobject.c | 1188 {"__itemsize__", Py_T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), Py_READONLY}, 2012 assert(type->tp_itemsize == 0); in _PyType_NewManagedObject() 2034 assert(type->tp_itemsize == 0); in _PyType_AllocNoTrack() 2051 if (type->tp_itemsize == 0) { in _PyType_AllocNoTrack() 3181 t1->tp_itemsize != t2->tp_itemsize in shape_differs() 3628 if (ctx->nslot > 0 && ctx->base->tp_itemsize != 0) { in type_new_slots_impl() 3662 && ctx->base->tp_itemsize == 0); in type_new_slots() 3939 type->tp_itemsize = ctx->base->tp_itemsize; in type_new_descriptors() 4659 if (base->tp_itemsize in _PyType_FromMetaclass_impl() 4719 type->tp_itemsize = itemsize; in _PyType_FromMetaclass_impl() [all …]
|
D | structseq.c | 587 type->tp_itemsize = sizeof(PyObject *); in initialize_static_fields()
|
D | longobject.c | 6167 return Py_TYPE(self)->tp_basicsize + Py_TYPE(self)->tp_itemsize * ndigits; in int___sizeof___impl()
|
/external/python/cpython3/Modules/_testcapi/ |
D | monitoring.c | 101 .tp_itemsize = 0,
|
/external/python/watchdog/src/ |
D | watchdog_fsevents.c | 239 .tp_itemsize = 0,
|
/external/python/cpython3/Doc/extending/ |
D | newtypes_tutorial.rst | 95 .tp_itemsize = 0, 136 .tp_itemsize = 0, 139 new :class:`!Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is
|
D | newtypes.rst | 37 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ 41 structures (think: strings, tuples) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tensor.cc | 1042 if (base_class_type->tp_itemsize != 0) { in TFE_Py_InitEagerTensor()
|
/external/pytorch/torch/csrc/dynamo/ |
D | guards.cpp | 3562 TensorGuardsType.tp_itemsize = 0; in torch_c_dynamo_guards_init() 3575 GlobalStateGuardType.tp_itemsize = 0; in torch_c_dynamo_guards_init()
|
/external/python/cpython3/Modules/_ctypes/ |
D | _ctypes.c | 533 size += Py_TYPE(self)->tp_itemsize * Py_SIZE(self); in _ctypes_CType_Type___sizeof___impl()
|
12