Home
last modified time | relevance | path

Searched refs:PyList_GET_SIZE (Results 1 – 25 of 76) sorted by relevance

1234

/external/python/cpython3/Modules/
D_heapqmodule.c19 size = PyList_GET_SIZE(heap); in siftdown()
35 if (size != PyList_GET_SIZE(heap)) { in siftdown()
60 endpos = PyList_GET_SIZE(heap); in siftup()
82 if (endpos != PyList_GET_SIZE(heap)) { in siftup()
115 if (siftdown((PyListObject *)heap, 0, PyList_GET_SIZE(heap)-1)) in heappush()
135 n = PyList_GET_SIZE(heap); in heappop_internal()
182 if (PyList_GET_SIZE(heap) == 0) { in heapreplace_internal()
227 if (PyList_GET_SIZE(heap) == 0) { in heappushpop()
240 if (PyList_GET_SIZE(heap) == 0) { in heappushpop()
297 m = PyList_GET_SIZE(heap) >> 1; /* index of first childless node */ in cache_friendly_heapify()
[all …]
D_queuemodule.c136 n = PyList_GET_SIZE(self->lst); in simplequeue_pop_item()
217 while (self->lst_pos == PyList_GET_SIZE(self->lst)) { in _queue_SimpleQueue_get_impl()
241 assert(self->lst_pos < PyList_GET_SIZE(self->lst)); in _queue_SimpleQueue_get_impl()
278 return self->lst_pos == PyList_GET_SIZE(self->lst); in _queue_SimpleQueue_empty_impl()
291 return PyList_GET_SIZE(self->lst) - self->lst_pos; in _queue_SimpleQueue_qsize_impl()
Dgcmodule.c995 if (PyList_GET_SIZE(_PyRuntime.gc.callbacks) != 0) { in invoke_gc_callback()
1005 for (i=0; i<PyList_GET_SIZE(_PyRuntime.gc.callbacks); i++) { in invoke_gc_callback()
1615 && _PyRuntime.gc.garbage != NULL && PyList_GET_SIZE(_PyRuntime.gc.garbage) > 0) { in _PyGC_DumpShutdownStats()
1628 PyList_GET_SIZE(_PyRuntime.gc.garbage))) in _PyGC_DumpShutdownStats()
D_asynciomodule.c439 len = PyList_GET_SIZE(fut->fut_callbacks); in future_schedule_callbacks()
955 len = PyList_GET_SIZE(self->fut_callbacks); in _asyncio_Future_remove_done_callback()
982 for (i = 0; i < PyList_GET_SIZE(self->fut_callbacks); i++) { in _asyncio_Future_remove_done_callback()
1010 j = PyList_GET_SIZE(newlist); in _asyncio_Future_remove_done_callback()
1011 len = PyList_GET_SIZE(self->fut_callbacks); in _asyncio_Future_remove_done_callback()
1186 len += PyList_GET_SIZE(fut->fut_callbacks); in FutureObj_get_callbacks()
1210 for (i = 0; i < PyList_GET_SIZE(fut->fut_callbacks); i++) { in FutureObj_get_callbacks()
D_abc.c282 for (Py_ssize_t pos = 0; pos < PyList_GET_SIZE(items); pos++) { in compute_abstract_methods()
675 for (pos = 0; pos < PyList_GET_SIZE(subclasses); pos++) { in _abc__abc_subclasscheck_impl()
/external/python/cpython2/Modules/
D_heapqmodule.c43 size = PyList_GET_SIZE(heap); in _siftdown()
58 if (size != PyList_GET_SIZE(heap)) { in _siftdown()
82 endpos = PyList_GET_SIZE(heap); in _siftup()
103 if (endpos != PyList_GET_SIZE(heap)) { in _siftup()
136 if (_siftdown((PyListObject *)heap, 0, PyList_GET_SIZE(heap)-1) == -1) in heappush()
157 n = PyList_GET_SIZE(heap); in heappop()
195 if (PyList_GET_SIZE(heap) < 1) { in heapreplace()
234 if (PyList_GET_SIZE(heap) < 1) { in heappushpop()
247 if (PyList_GET_SIZE(heap) == 0) { in heappushpop()
277 n = PyList_GET_SIZE(heap); in heapify()
[all …]
/external/python/cpython3/Python/
DPython-ast.c3975 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3982 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
4016 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
4023 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
4081 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
4088 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
4198 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
4205 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
4228 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
4235 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
[all …]
Dpystate.c458 if (index >= PyList_GET_SIZE(state->modules_by_index)) in PyState_FindModule()
483 while(PyList_GET_SIZE(state->modules_by_index) <= def->m_base.m_index) in _PyState_AddModule()
502 if(PyList_GET_SIZE(state->modules_by_index) >= index) { in PyState_AddModule()
531 if (index > PyList_GET_SIZE(state->modules_by_index)) { in PyState_RemoveModule()
546 for (i = 0; i < PyList_GET_SIZE(state->modules_by_index); i++) { in _PyState_ClearModules()
558 0, PyList_GET_SIZE(state->modules_by_index), in _PyState_ClearModules()
Dmarshal.c499 n = PyList_GET_SIZE(v); in w_complex_object()
889 Py_ssize_t idx = PyList_GET_SIZE(p->refs); in r_ref_reserve()
1454 if (n < 0 || n >= PyList_GET_SIZE(p->refs)) { in r_object()
Dpeephole.c163 PyList_GET_SIZE(consts)-1, opcode_end); in fold_tuple_on_constants()
/external/python/cpython2/Python/
DPython-ast.c3347 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3354 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3387 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3394 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3450 len = PyList_GET_SIZE(tmp); in obj2ast_mod()
3457 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_mod()
3563 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
3570 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
3592 len = PyList_GET_SIZE(tmp); in obj2ast_stmt()
3599 if (len != PyList_GET_SIZE(tmp)) { in obj2ast_stmt()
[all …]
Dpeephole.c53 len_consts = PyList_GET_SIZE(consts); in tuple_of_constants()
175 len_consts = PyList_GET_SIZE(consts); in fold_binops_on_constants()
228 len_consts = PyList_GET_SIZE(consts); in fold_unaryops_on_constants()
400 for (j=0 ; j < PyList_GET_SIZE(consts) ; j++) { in PyCode_Optimize()
404 if (j == PyList_GET_SIZE(consts)) { in PyCode_Optimize()
/external/python/cpython3/Objects/
Daccu.c31 Py_ssize_t nsmall = PyList_GET_SIZE(acc->small); in flush_accumulator()
62 nsmall = PyList_GET_SIZE(acc->small); in _PyAccu_Accumulate()
Dlistobject.c283 Py_ssize_t n = PyList_GET_SIZE(self); in app1()
696 size = PyList_GET_SIZE(self); in list_inplace_repeat()
2721 i += PyList_GET_SIZE(self); in list_subscript()
2774 i += PyList_GET_SIZE(self); in list_ass_subscript()
2866 PyList_GET_SIZE(value)); in list_ass_subscript()
3084 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next()
3101 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
3123 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()
3124 index = PyList_GET_SIZE(it->it_seq); /* iterator exhausted */ in listiter_setstate()
3201 it->it_index = PyList_GET_SIZE(self) - 1; in list___reversed___impl()
[all …]
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc90 return PyList_GET_SIZE(self->child_messages); in Length()
104 Py_ssize_t child_length = PyList_GET_SIZE(self->child_messages); in UpdateChildMessages()
471 const Py_ssize_t size = PyList_GET_SIZE(self->child_messages); in Release()
493 const Py_ssize_t n = PyList_GET_SIZE(self->child_messages); in SetOwner()
/external/python/cpython2/Objects/
Dlistobject.c268 Py_ssize_t n = PyList_GET_SIZE(self); in app1()
396 assert(PyList_GET_SIZE(pieces) > 0); in list_repr()
409 temp = PyList_GET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1); in list_repr()
411 PyList_SET_ITEM(pieces, PyList_GET_SIZE(pieces) - 1, temp); in list_repr()
728 size = PyList_GET_SIZE(self); in list_inplace_repeat()
2553 i += PyList_GET_SIZE(self); in list_subscript()
2606 i += PyList_GET_SIZE(self); in list_ass_subscript()
2700 PyList_GET_SIZE(value)); in list_ass_subscript()
2913 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next()
2930 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
[all …]
Dtypeobject.c104 n = PyList_GET_SIZE(raw); in PyType_Modified()
410 n = PyList_GET_SIZE(subclasses); in mro_subclasses()
1403 size = PyList_GET_SIZE(list); in tail_contains()
1437 n = PyList_GET_SIZE(list); in check_duplicates()
1472 to_merge_size = PyList_GET_SIZE(to_merge); in set_mro_error()
1475 if (remain[i] < PyList_GET_SIZE(L)) { in set_mro_error()
1508 to_merge_size = PyList_GET_SIZE(to_merge); in pmerge()
1527 if (remain[i] >= PyList_GET_SIZE(cur_list)) { in pmerge()
1553 if (remain[j] < PyList_GET_SIZE(j_lst) && in pmerge()
2780 n = PyList_GET_SIZE(raw); in type_subclasses()
[all …]
Dobject.c1767 for (i = 0; i < PyList_GET_SIZE(list); ++i) { in merge_list_attr()
2397 i = PyList_GET_SIZE(list); in Py_ReprEnter()
2419 i = PyList_GET_SIZE(list); in Py_ReprLeave()
/external/python/cpython2/Include/
Dlistobject.h63 #define PyList_GET_SIZE(op) Py_SIZE(op) macro
Dabstract.h1161 (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
/external/python/cpython3/Include/
Dlistobject.h74 #define PyList_GET_SIZE(op) (assert(PyList_Check(op)),Py_SIZE(op)) macro
/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc85 Py_ssize_t n = PyList_GET_SIZE(ret_val); in TryAppendTraceback()
/external/python/cpython3/Modules/_sqlite/
Dstatement.c225 num_params = PyList_GET_SIZE(parameters); in pysqlite_statement_bind_parameters()
/external/python/cpython2/Modules/_sqlite/
Dstatement.c236 num_params = PyList_GET_SIZE(parameters); in pysqlite_statement_bind_parameters()
/external/python/cpython3/Doc/c-api/
Dlist.rst54 .. c:function:: Py_ssize_t PyList_GET_SIZE(PyObject *list)

1234