Lines Matching refs:indexes
48 bool mp_seq_get_fast_slice_indexes(mp_uint_t len, mp_obj_t slice, mp_bound_slice_t *indexes) { in mp_seq_get_fast_slice_indexes() argument
49 mp_obj_slice_indices(slice, len, indexes); in mp_seq_get_fast_slice_indexes()
52 if (indexes->step < 0) { in mp_seq_get_fast_slice_indexes()
53 indexes->stop++; in mp_seq_get_fast_slice_indexes()
57 if (indexes->step > 0 && indexes->start > indexes->stop) { in mp_seq_get_fast_slice_indexes()
58 indexes->stop = indexes->start; in mp_seq_get_fast_slice_indexes()
59 } else if (indexes->step < 0 && indexes->start < indexes->stop) { in mp_seq_get_fast_slice_indexes()
60 indexes->stop = indexes->start + 1; in mp_seq_get_fast_slice_indexes()
63 return indexes->step == 1; in mp_seq_get_fast_slice_indexes()
68 mp_obj_t mp_seq_extract_slice(size_t len, const mp_obj_t *seq, mp_bound_slice_t *indexes) { in mp_seq_extract_slice() argument
71 mp_int_t start = indexes->start, stop = indexes->stop; in mp_seq_extract_slice()
72 mp_int_t step = indexes->step; in mp_seq_extract_slice()