/third_party/python/Include/internal/ |
H A D | pycore_list.h | 53 Py_SET_SIZE(self, len + 1); in _PyList_AppendTakeRef()
|
H A D | pycore_object.h | 103 Py_SET_SIZE(op, size); in _PyObject_InitVar()
|
/third_party/python/Objects/ |
H A D | listobject.c | 56 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 D | bytearrayobject.c | 143 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 D | longobject.c | 133 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 D | structseq.c | 68 Py_SET_SIZE(obj, vsize); in PyStructSequence_New()
|
H A D | tupleobject.c | 1198 Py_SET_SIZE(op, size); in maybe_freelist_pop()
|
H A D | odictobject.c | 1417 Py_SET_SIZE(pieces, count); in odict_repr()
|
H A D | bytesobject.c | 3097 Py_SET_SIZE(sv, newsize); in _PyBytes_Resize()
|
/third_party/python/Include/ |
H A D | object.h | 139 // 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.c | 171 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.c | 476 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 D | arraymodule.c | 147 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.c | 1079 Py_SET_SIZE(newlist, j); in _asyncio_Future_remove_done_callback()
|
H A D | gcmodule.c | 2340 Py_SET_SIZE(op, nitems); in _PyObject_GC_Resize()
|
H A D | _ssl.c | 2050 Py_SET_SIZE(res, len); in _ssl__SSLSocket_shared_ciphers_impl()
|
H A D | _testcapimodule.c | 5718 // 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 D | split.h | 51 #define FIX_PREALLOC_SIZE(list) Py_SET_SIZE(list, count)
|
/third_party/python/Python/ |
H A D | hamt.c | 543 Py_SET_SIZE(node, size); in hamt_node_bitmap_new() 1280 Py_SET_SIZE(node, size); in hamt_node_collision_new()
|
H A D | marshal.c | 846 Py_SET_SIZE(ob, n > 0 ? size : -size); in r_PyLong()
|
H A D | ceval.c | 6768 Py_SET_SIZE(l, ll - argcntafter);
|
/third_party/python/Modules/_decimal/ |
H A D | _decimal.c | 3570 Py_SET_SIZE(pylong, i); in dec_as_long() 3572 Py_SET_SIZE(pylong, -i); in dec_as_long()
|