Home
last modified time | relevance | path

Searched refs:Py_SET_SIZE (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Objects/
Dlongobject.c69 Py_SET_SIZE(x, -Py_SIZE(x)); in _PyLong_Negate()
109 Py_SET_SIZE(v, (Py_SIZE(v) < 0) ? -(i) : i); in long_normalize()
162 Py_SET_SIZE(result, Py_SIZE(src)); in _PyLong_Copy()
200 Py_SET_SIZE(v, sign); in PyLong_FromLong()
212 Py_SET_SIZE(v, 2 * sign); in PyLong_FromLong()
231 Py_SET_SIZE(v, ndigits * sign); in PyLong_FromLong()
342 Py_SET_SIZE(v, -(Py_SIZE(v))); in PyLong_FromDouble()
834 Py_SET_SIZE(v, is_signed ? -idigit : idigit); in _PyLong_FromByteArray()
1062 Py_SET_SIZE(v, negative ? -ndigits : ndigits); in PyLong_FromLongLong()
1105 Py_SET_SIZE(v, negative ? -ndigits : ndigits); in PyLong_FromSsize_t()
[all …]
Dlistobject.c57 Py_SET_SIZE(self, newsize); in list_resize()
87 Py_SET_SIZE(self, newsize); in list_resize()
174 Py_SET_SIZE(op, size); in PyList_New()
477 Py_SET_SIZE(np, len); in list_slice()
540 Py_SET_SIZE(np, size); in list_concat()
583 Py_SET_SIZE(np, size); in list_repeat()
596 Py_SET_SIZE(a, 0); in _list_clear()
935 Py_SET_SIZE(self, m); in list_extend()
953 Py_SET_SIZE(self, Py_SIZE(self) + 1); in list_extend()
2226 Py_SET_SIZE(self, 0); in list_sort_impl()
[all …]
Dbytearrayobject.c141 Py_SET_SIZE(new, size); in PyByteArray_FromStringAndSize()
199 Py_SET_SIZE(self, size); in PyByteArray_Resize()
239 Py_SET_SIZE(self, size); in PyByteArray_Resize()
495 Py_SET_SIZE(self, Py_SIZE(self) + growth); in bytearray_setslice_linear()
885 Py_SET_SIZE(self, Py_SIZE(self) + 1); in bytearray___init___impl()
Dstructseq.c72 Py_SET_SIZE(obj, vsize); in PyStructSequence_New()
Dtupleobject.c85 Py_SET_SIZE(op, size); in tuple_alloc()
Dodictobject.c1469 Py_SET_SIZE(pieces, count); in odict_repr()
Dbytesobject.c3054 Py_SET_SIZE(sv, newsize); in _PyBytes_Resize()
/third_party/python/Include/internal/
Dpycore_object.h55 Py_SET_SIZE(op, size); in _PyObject_InitVar()
/third_party/python/Modules/
D_collectionsmodule.c176 Py_SET_SIZE(deque, 0); in deque_new()
200 Py_SET_SIZE(deque, Py_SIZE(deque) - 1); in deque_pop()
238 Py_SET_SIZE(deque, Py_SIZE(deque) - 1); in deque_popleft()
291 Py_SET_SIZE(deque, Py_SIZE(deque) + 1); in deque_append_internal()
328 Py_SET_SIZE(deque, Py_SIZE(deque) + 1); in deque_appendleft_internal()
601 Py_SET_SIZE(deque, 0); in deque_clear()
684 Py_SET_SIZE(deque, Py_SIZE(deque) + i); in deque_inplace_repeat()
704 Py_SET_SIZE(deque, Py_SIZE(deque) + i); in deque_inplace_repeat()
Darraymodule.c143 Py_SET_SIZE(self, newsize); in array_resize()
150 Py_SET_SIZE(self, 0); in array_resize()
180 Py_SET_SIZE(self, newsize); in array_resize()
604 Py_SET_SIZE(op, size); in newarrayobject()
2721 Py_SET_SIZE(self, n); in array_new()
D_pickle.c465 Py_SET_SIZE(self, 0); in Pdata_New()
492 Py_SET_SIZE(self, clearto); in Pdata_clear()
543 Py_SET_SIZE(self, Py_SIZE(self) - 1); in Pdata_pop()
555 Py_SET_SIZE(self, Py_SIZE(self) + 1); in Pdata_push()
585 Py_SET_SIZE(self, start); in Pdata_poptuple()
602 Py_SET_SIZE(self, start); in Pdata_poplist()
6136 Py_SET_SIZE(self->stack, len); in load_pop()
6497 Py_SET_SIZE(self->stack, x); in do_append()
6503 Py_SET_SIZE(self->stack, x); in do_append()
6625 Py_SET_SIZE(self->stack, mark); in load_additems()
[all …]
Dgcmodule.c2330 Py_SET_SIZE(op, nitems); in _PyObject_GC_Resize()
D_asynciomodule.c1057 Py_SET_SIZE(newlist, j); in _asyncio_Future_remove_done_callback()
/third_party/python/Objects/stringlib/
Dsplit.h51 #define FIX_PREALLOC_SIZE(list) Py_SET_SIZE(list, count)
/third_party/python/Include/
Dobject.h166 #define Py_SET_SIZE(ob, size) _Py_SET_SIZE(_PyVarObject_CAST(ob), size) macro
/third_party/python/Doc/c-api/
Dstructures.rst140 The :c:func:`Py_SET_SIZE` function must be used to set an object size.
143 .. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size)
/third_party/python/Python/
Dhamt.c534 Py_SET_SIZE(node, size); in hamt_node_bitmap_new()
1271 Py_SET_SIZE(node, size); in hamt_node_collision_new()
Dmarshal.c795 Py_SET_SIZE(ob, n > 0 ? size : -size); in r_PyLong()
Dceval.c5356 Py_SET_SIZE(l, ll - argcntafter); in unpack_iterable()
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst850 Add :c:func:`Py_SET_SIZE` function to set the size of an object.
D3.10.0a1.rst3488 :c:func:`Py_SET_REFCNT` and :c:func:`Py_SET_SIZE` to set an object reference
/third_party/python/Modules/_decimal/
D_decimal.c3413 Py_SET_SIZE(pylong, i); in dec_as_long()
3415 Py_SET_SIZE(pylong, -i); in dec_as_long()