Lines Matching refs:lstep
1038 long lstart, lstop, lstep; in range_iter() local
1055 lstep = PyLong_AsLong(r->step); in range_iter()
1056 if (lstep == -1 && PyErr_Occurred()) { in range_iter()
1060 int_it = fast_range_iter(lstart, lstop, lstep); in range_iter()
1089 long lstart, lstop, lstep, new_start, new_stop; in range_reverse() local
1114 lstep = PyLong_AsLong(range->step); in range_reverse()
1115 if (lstep == -1 && PyErr_Occurred()) { in range_reverse()
1120 if (lstep == LONG_MIN) in range_reverse()
1136 if (lstep > 0) { in range_reverse()
1137 if ((unsigned long)lstart - LONG_MIN < (unsigned long)lstep) in range_reverse()
1141 if (LONG_MAX - (unsigned long)lstart < 0UL - lstep) in range_reverse()
1145 ulen = get_len_of_range(lstart, lstop, lstep); in range_reverse()
1149 new_stop = lstart - lstep; in range_reverse()
1150 new_start = (long)(new_stop + ulen * lstep); in range_reverse()
1151 return fast_range_iter(new_start, new_stop, -lstep); in range_reverse()