Lines Matching refs:lstep
1073 long lstart, lstop, lstep; in range_iter() local
1090 lstep = PyLong_AsLong(r->step); in range_iter()
1091 if (lstep == -1 && PyErr_Occurred()) { in range_iter()
1095 int_it = fast_range_iter(lstart, lstop, lstep); in range_iter()
1124 long lstart, lstop, lstep, new_start, new_stop; in range_reverse() local
1149 lstep = PyLong_AsLong(range->step); in range_reverse()
1150 if (lstep == -1 && PyErr_Occurred()) { in range_reverse()
1155 if (lstep == LONG_MIN) in range_reverse()
1171 if (lstep > 0) { in range_reverse()
1172 if ((unsigned long)lstart - LONG_MIN < (unsigned long)lstep) in range_reverse()
1176 if (LONG_MAX - (unsigned long)lstart < 0UL - lstep) in range_reverse()
1180 ulen = get_len_of_range(lstart, lstop, lstep); in range_reverse()
1184 new_stop = lstart - lstep; in range_reverse()
1185 new_start = (long)(new_stop + ulen * lstep); in range_reverse()
1186 return fast_range_iter(new_start, new_stop, -lstep); in range_reverse()