Lines Matching refs:step
177 lua_Integer *p, lua_Integer step) { in forlimit() argument
178 if (!luaV_tointeger(lim, p, (step < 0 ? F2Iceil : F2Ifloor))) { in forlimit()
185 if (step < 0) return 1; /* initial value must be less than it */ in forlimit()
189 if (step > 0) return 1; /* initial value must be greater than it */ in forlimit()
193 return (step > 0 ? init > *p : init < *p); /* not to run? */ in forlimit()
212 lua_Integer step = ivalue(pstep); in forprep() local
214 if (step == 0) in forprep()
217 if (forlimit(L, init, plimit, &limit, step)) in forprep()
221 if (step > 0) { /* ascending loop? */ in forprep()
223 if (step != 1) /* avoid division in the too common case */ in forprep()
224 count /= l_castS2U(step); in forprep()
229 count /= l_castS2U(-(step + 1)) + 1u; in forprep()
237 lua_Number init; lua_Number limit; lua_Number step; in forprep() local
240 if (l_unlikely(!tonumber(pstep, &step))) in forprep()
244 if (step == 0) in forprep()
246 if (luai_numlt(0, step) ? luai_numlt(limit, init) in forprep()
252 setfltvalue(pstep, step); in forprep()
267 lua_Number step = fltvalue(s2v(ra + 2)); in floatforloop() local
270 idx = luai_numadd(L, idx, step); /* increment index */ in floatforloop()
271 if (luai_numlt(0, step) ? luai_numle(idx, limit) in floatforloop()
1733 lua_Integer step = ivalue(s2v(ra + 2)); in luaV_execute() local
1736 idx = intop(+, idx, step); /* add step to index */ in luaV_execute()