Home
last modified time | relevance | path

Searched refs:n_total (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjboundmeth.c52 size_t n_total = n_args + 2 * n_kw; in mp_call_method_self_n_kw() local
55 args2 = mp_pystack_alloc(sizeof(mp_obj_t) * (1 + n_total)); in mp_call_method_self_n_kw()
58 if (n_total > 4) { in mp_call_method_self_n_kw()
60 args2 = m_new_maybe(mp_obj_t, 1 + n_total); in mp_call_method_self_n_kw()
65 args2 = alloca(sizeof(mp_obj_t) * (1 + n_total)); in mp_call_method_self_n_kw()
69 memcpy(args2 + 1, args, n_total * sizeof(mp_obj_t)); in mp_call_method_self_n_kw()
75 m_del(mp_obj_t, free_args2, 1 + n_total); in mp_call_method_self_n_kw()
A Dobjclosure.c44 size_t n_total = self->n_closed + n_args + 2 * n_kw; in closure_call() local
45 if (n_total <= 5) { in closure_call()
53 mp_obj_t *args2 = m_new(mp_obj_t, n_total); in closure_call()
57 m_del(mp_obj_t, args2, n_total); in closure_call()

Completed in 3 milliseconds