Lines Matching refs:stop
43 mp_obj_print_helper(print, o->stop, PRINT_REPR); in slice_print()
57 MP_OBJ_NEW_SMALL_INT(bound_indices.stop), in slice_indices()
76 dest[0] = self->stop; in slice_attr()
110 o->stop = ostop; in mp_obj_new_slice()
120 mp_int_t start, stop, step; in mp_obj_slice_indices() local
143 if (self->stop == mp_const_none) { in mp_obj_slice_indices()
144 stop = length; in mp_obj_slice_indices()
146 stop = mp_obj_get_int(self->stop); in mp_obj_slice_indices()
147 if (stop < 0) { in mp_obj_slice_indices()
148 stop += length; in mp_obj_slice_indices()
150 stop = MIN(length, MAX(stop, 0)); in mp_obj_slice_indices()
164 if (self->stop == mp_const_none) { in mp_obj_slice_indices()
165 stop = -1; in mp_obj_slice_indices()
167 stop = mp_obj_get_int(self->stop); in mp_obj_slice_indices()
168 if (stop < 0) { in mp_obj_slice_indices()
169 stop += length; in mp_obj_slice_indices()
171 stop = MIN(length - 1, MAX(stop, -1)); in mp_obj_slice_indices()
176 result->stop = stop; in mp_obj_slice_indices()