lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Benjamin Segovia <segovia.benjamin@gmail.com> wrote:

> I need to handle forward jumps with the idiom:
>
> while true do
> {... a lot of compute ...}
> if some_condition_on_the_lane_of_the_simd_vector then break end
> {... a lot of compute ...}
> break -- this one is to exit anyway
> end

Why not this?

  {... a lot of compute ...}
  if not some_condition_on_the_lane_of_the_simd_vector then
    {... a lot of compute ...}
  end

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Tyne, Dogger: Variable becoming northeast, 3 or 4. Slight or moderate.
Thundery showers. Good, occasionally poor.