/third_party/python/Objects/ |
D | longobject.c | 69 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 …]
|
D | listobject.c | 57 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 …]
|
D | bytearrayobject.c | 141 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()
|
D | structseq.c | 72 Py_SET_SIZE(obj, vsize); in PyStructSequence_New()
|
D | tupleobject.c | 85 Py_SET_SIZE(op, size); in tuple_alloc()
|
D | odictobject.c | 1469 Py_SET_SIZE(pieces, count); in odict_repr()
|
D | bytesobject.c | 3054 Py_SET_SIZE(sv, newsize); in _PyBytes_Resize()
|
/third_party/python/Include/internal/ |
D | pycore_object.h | 55 Py_SET_SIZE(op, size); in _PyObject_InitVar()
|
/third_party/python/Modules/ |
D | _collectionsmodule.c | 176 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()
|
D | arraymodule.c | 143 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.c | 465 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 …]
|
D | gcmodule.c | 2330 Py_SET_SIZE(op, nitems); in _PyObject_GC_Resize()
|
D | _asynciomodule.c | 1057 Py_SET_SIZE(newlist, j); in _asyncio_Future_remove_done_callback()
|
/third_party/python/Objects/stringlib/ |
D | split.h | 51 #define FIX_PREALLOC_SIZE(list) Py_SET_SIZE(list, count)
|
/third_party/python/Include/ |
D | object.h | 166 #define Py_SET_SIZE(ob, size) _Py_SET_SIZE(_PyVarObject_CAST(ob), size) macro
|
/third_party/python/Doc/c-api/ |
D | structures.rst | 140 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/ |
D | hamt.c | 534 Py_SET_SIZE(node, size); in hamt_node_bitmap_new() 1271 Py_SET_SIZE(node, size); in hamt_node_collision_new()
|
D | marshal.c | 795 Py_SET_SIZE(ob, n > 0 ? size : -size); in r_PyLong()
|
D | ceval.c | 5356 Py_SET_SIZE(l, ll - argcntafter); in unpack_iterable()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 850 Add :c:func:`Py_SET_SIZE` function to set the size of an object.
|
D | 3.10.0a1.rst | 3488 :c:func:`Py_SET_REFCNT` and :c:func:`Py_SET_SIZE` to set an object reference
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 3413 Py_SET_SIZE(pylong, i); in dec_as_long() 3415 Py_SET_SIZE(pylong, -i); in dec_as_long()
|