Lines Matching refs:mp_obj_t
48 STATIC bool is_set_or_frozenset(mp_obj_t o) { in is_set_or_frozenset()
63 STATIC void set_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { in set_print()
102 STATIC mp_obj_t set_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t … in set_make_new()
117 mp_obj_t set = mp_obj_new_set(0, NULL); in set_make_new()
118 mp_obj_t iterable = mp_getiter(args[0], NULL); in set_make_new()
119 mp_obj_t item; in set_make_new()
130 STATIC mp_obj_t set_it_iternext(mp_obj_t self_in) { in set_it_iternext()
145 STATIC mp_obj_t set_getiter(mp_obj_t set_in, mp_obj_iter_buf_t *iter_buf) { in set_getiter()
158 STATIC mp_obj_t set_add(mp_obj_t self_in, mp_obj_t item) { in set_add()
166 STATIC mp_obj_t set_clear(mp_obj_t self_in) { in set_clear()
174 STATIC mp_obj_t set_copy(mp_obj_t self_in) { in set_copy()
181 memcpy(other->set.table, self->set.table, self->set.alloc * sizeof(mp_obj_t)); in set_copy()
186 STATIC mp_obj_t set_discard(mp_obj_t self_in, mp_obj_t item) { in set_discard()
194 STATIC mp_obj_t set_diff_int(size_t n_args, const mp_obj_t *args, bool update) { in set_diff_int()
195 mp_obj_t self; in set_diff_int()
204 mp_obj_t other = args[i]; in set_diff_int()
209 mp_obj_t iter = mp_getiter(other, NULL); in set_diff_int()
210 mp_obj_t next; in set_diff_int()
220 STATIC mp_obj_t set_diff(size_t n_args, const mp_obj_t *args) { in set_diff()
225 STATIC mp_obj_t set_diff_update(size_t n_args, const mp_obj_t *args) { in set_diff_update()
231 STATIC mp_obj_t set_intersect_int(mp_obj_t self_in, mp_obj_t other, bool update) { in set_intersect_int()
245 mp_obj_t iter = mp_getiter(other, NULL); in set_intersect_int()
246 mp_obj_t next; in set_intersect_int()
254 m_del(mp_obj_t, self->set.table, self->set.alloc); in set_intersect_int()
263 STATIC mp_obj_t set_intersect(mp_obj_t self_in, mp_obj_t other) { in set_intersect()
268 STATIC mp_obj_t set_intersect_update(mp_obj_t self_in, mp_obj_t other) { in set_intersect_update()
273 STATIC mp_obj_t set_isdisjoint(mp_obj_t self_in, mp_obj_t other) { in set_isdisjoint()
278 mp_obj_t iter = mp_getiter(other, &iter_buf); in set_isdisjoint()
279 mp_obj_t next; in set_isdisjoint()
289 STATIC mp_obj_t set_issubset_internal(mp_obj_t self_in, mp_obj_t other_in, bool proper) { in set_issubset_internal()
307 mp_obj_t out = mp_const_true; in set_issubset_internal()
312 mp_obj_t iter = set_getiter(MP_OBJ_FROM_PTR(self), &iter_buf); in set_issubset_internal()
313 mp_obj_t next; in set_issubset_internal()
331 STATIC mp_obj_t set_issubset(mp_obj_t self_in, mp_obj_t other_in) { in set_issubset()
336 STATIC mp_obj_t set_issubset_proper(mp_obj_t self_in, mp_obj_t other_in) { in set_issubset_proper()
340 STATIC mp_obj_t set_issuperset(mp_obj_t self_in, mp_obj_t other_in) { in set_issuperset()
345 STATIC mp_obj_t set_issuperset_proper(mp_obj_t self_in, mp_obj_t other_in) { in set_issuperset_proper()
349 STATIC mp_obj_t set_equal(mp_obj_t self_in, mp_obj_t other_in) { in set_equal()
360 STATIC mp_obj_t set_pop(mp_obj_t self_in) { in set_pop()
363 mp_obj_t obj = mp_set_remove_first(&self->set); in set_pop()
371 STATIC mp_obj_t set_remove(mp_obj_t self_in, mp_obj_t item) { in set_remove()
381 STATIC mp_obj_t set_symmetric_difference_update(mp_obj_t self_in, mp_obj_t other_in) { in set_symmetric_difference_update()
384 mp_obj_t iter = mp_getiter(other_in, NULL); in set_symmetric_difference_update()
385 mp_obj_t next; in set_symmetric_difference_update()
393 STATIC mp_obj_t set_symmetric_difference(mp_obj_t self_in, mp_obj_t other_in) { in set_symmetric_difference()
394 mp_obj_t self_out = set_copy(self_in); in set_symmetric_difference()
400 STATIC void set_update_int(mp_obj_set_t *self, mp_obj_t other_in) { in set_update_int()
401 mp_obj_t iter = mp_getiter(other_in, NULL); in set_update_int()
402 mp_obj_t next; in set_update_int()
408 STATIC mp_obj_t set_update(size_t n_args, const mp_obj_t *args) { in set_update()
418 STATIC mp_obj_t set_union(mp_obj_t self_in, mp_obj_t other_in) { in set_union()
420 mp_obj_t self = set_copy(self_in); in set_union()
426 STATIC mp_obj_t set_unary_op(mp_unary_op_t op, mp_obj_t self_in) { in set_unary_op()
455 STATIC mp_obj_t set_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) { in set_binary_op()
456 mp_obj_t args[] = {lhs, rhs}; in set_binary_op()
510 mp_obj_t elem = mp_set_lookup(&o->set, rhs, MP_MAP_LOOKUP); in set_binary_op()
581 mp_obj_t mp_obj_new_set(size_t n_args, mp_obj_t *items) { in mp_obj_new_set()
591 void mp_obj_set_store(mp_obj_t self_in, mp_obj_t item) { in mp_obj_set_store()