Hi,
I have a tight loop where I basically do this over and over (millions
of times):
int cell = <calculation>
const int above = <calculation>
if (cell above) cell = above;
const int below = <calculation>
if (cell below) cell = below;
const int trans = <calculation>
if (cell trans) cell = trans;
Is there a faster way to do this?
Sincerely,
Anders
I have a tight loop where I basically do this over and over (millions
of times):
int cell = <calculation>
const int above = <calculation>
if (cell above) cell = above;
const int below = <calculation>
if (cell below) cell = below;
const int trans = <calculation>
if (cell trans) cell = trans;
Is there a faster way to do this?
Sincerely,
Anders
Comment