Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
H A Dpycore_list.h53 Py_SET_SIZE(self, len + 1); in _PyList_AppendTakeRef()
H A Dpycore_object.h103 Py_SET_SIZE(op, size); in _PyObject_InitVar()
/third_party/python/Objects/
H A Dlistobject.c56 Py_SET_SIZE(self, newsize); in list_resize()
92 Py_SET_SIZE(self, newsize); in list_resize()
194 Py_SET_SIZE(op, size); in PyList_New()
489 Py_SET_SIZE(np, len); in list_slice()
552 Py_SET_SIZE(np, size); in list_concat()
600 Py_SET_SIZE(np, size); in list_repeat()
613 Py_SET_SIZE(a, 0); in _list_clear()
911 Py_SET_SIZE(self, n); in list_extend()
961 Py_SET_SIZE(self, m); in list_extend()
979 Py_SET_SIZE(sel in list_extend()
[all...]
H A Dbytearrayobject.c143 Py_SET_SIZE(new, size); in PyByteArray_FromStringAndSize()
201 Py_SET_SIZE(self, size); in PyByteArray_Resize()
241 Py_SET_SIZE(self, size); in PyByteArray_Resize()
481 Py_SET_SIZE(self, Py_SIZE(self) + growth); in bytearray_setslice_linear()
910 Py_SET_SIZE(self, Py_SIZE(self) + 1); in bytearray___init___impl()
H A Dlongobject.c133 Py_SET_SIZE(v, (Py_SIZE(v) < 0) ? -(i) : i); in long_normalize()
189 Py_SET_SIZE(result, Py_SIZE(src)); in _PyLong_Copy()
243 Py_SET_SIZE(v, ndigits * sign); in _PyLong_FromLarge()
277 Py_SET_SIZE(x, -Py_SIZE(x)); in _PyLong_Negate()
316 Py_SET_SIZE(v, ival < 0 ? -ndigits : ndigits); in PyLong_FromLong()
426 Py_SET_SIZE(v, -(Py_SIZE(v))); in PyLong_FromDouble()
921 Py_SET_SIZE(v, is_signed ? -idigit : idigit); in _PyLong_FromByteArray()
1143 Py_SET_SIZE(v, ival < 0 ? -ndigits : ndigits); in PyLong_FromLongLong()
1186 Py_SET_SIZE(v, negative ? -ndigits : ndigits); in PyLong_FromSsize_t()
2513 Py_SET_SIZE( in PyLong_FromString()
[all...]
H A Dstructseq.c68 Py_SET_SIZE(obj, vsize); in PyStructSequence_New()
H A Dtupleobject.c1198 Py_SET_SIZE(op, size); in maybe_freelist_pop()
H A Dodictobject.c1417 Py_SET_SIZE(pieces, count); in odict_repr()
H A Dbytesobject.c3097 Py_SET_SIZE(sv, newsize); in _PyBytes_Resize()
/third_party/python/Include/
H A Dobject.h139 // bpo-39573: The Py_SET_SIZE() function must be used to set an object size.
173 static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { in Py_SET_SIZE() function
177 # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob), size) macro
/third_party/python/Modules/
H A D_collectionsmodule.c171 Py_SET_SIZE(deque, 0); in deque_new()
196 Py_SET_SIZE(deque, Py_SIZE(deque) - 1); in deque_pop()
234 Py_SET_SIZE(deque, Py_SIZE(deque) - 1); in deque_popleft()
287 Py_SET_SIZE(deque, Py_SIZE(deque) + 1); in deque_append_internal()
324 Py_SET_SIZE(deque, Py_SIZE(deque) + 1); in deque_appendleft_internal()
597 Py_SET_SIZE(deque, 0); in deque_clear()
680 Py_SET_SIZE(deque, Py_SIZE(deque) + i); in deque_inplace_repeat()
700 Py_SET_SIZE(deque, Py_SIZE(deque) + i); in deque_inplace_repeat()
H A D_pickle.c476 Py_SET_SIZE(self, 0); in Pdata_New()
503 Py_SET_SIZE(self, clearto); in Pdata_clear()
554 Py_SET_SIZE(self, Py_SIZE(self) - 1); in Pdata_pop()
566 Py_SET_SIZE(self, Py_SIZE(self) + 1); in Pdata_push()
596 Py_SET_SIZE(self, start); in Pdata_poptuple()
613 Py_SET_SIZE(self, start); in Pdata_poplist()
6143 Py_SET_SIZE(self->stack, len); in load_pop()
6502 Py_SET_SIZE(self->stack, x); in do_append()
6508 Py_SET_SIZE(self->stack, x); in do_append()
6629 Py_SET_SIZE(sel in load_additems()
[all...]
H A Darraymodule.c147 Py_SET_SIZE(self, newsize); in array_resize()
154 Py_SET_SIZE(self, 0); in array_resize()
184 Py_SET_SIZE(self, newsize); in array_resize()
608 Py_SET_SIZE(op, size); in newarrayobject()
2724 Py_SET_SIZE(self, n); in array_new()
H A D_asynciomodule.c1079 Py_SET_SIZE(newlist, j); in _asyncio_Future_remove_done_callback()
H A Dgcmodule.c2340 Py_SET_SIZE(op, nitems); in _PyObject_GC_Resize()
H A D_ssl.c2050 Py_SET_SIZE(res, len); in _ssl__SSLSocket_shared_ciphers_impl()
H A D_testcapimodule.c5718 // bpo-39573: Test Py_SET_TYPE() and Py_SET_SIZE() functions. in test_set_type_size()
5720 Py_SET_SIZE(obj, 0); in test_set_type_size()
/third_party/python/Objects/stringlib/
H A Dsplit.h51 #define FIX_PREALLOC_SIZE(list) Py_SET_SIZE(list, count)
/third_party/python/Python/
H A Dhamt.c543 Py_SET_SIZE(node, size); in hamt_node_bitmap_new()
1280 Py_SET_SIZE(node, size); in hamt_node_collision_new()
H A Dmarshal.c846 Py_SET_SIZE(ob, n > 0 ? size : -size); in r_PyLong()
H A Dceval.c6768 Py_SET_SIZE(l, ll - argcntafter);
/third_party/python/Modules/_decimal/
H A D_decimal.c3570 Py_SET_SIZE(pylong, i); in dec_as_long()
3572 Py_SET_SIZE(pylong, -i); in dec_as_long()

Completed in 86 milliseconds