[Freeciv-Dev] Re: [Patch] Small patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
> \
> int ARG_x_itr, ARG_y_itr;
> \
> int MACRO_max_dx = map.xsize/2;
> \
> - int MACRO_min_dx = -(MACRO_max_dx - (map.xsize%2 ? 0 : 1));
> \
> + int MACRO_min_dx = -MACRO_max_dx - 1 + (map.xsize % 2);
performance issue: are you sure (map.xsize%2 ? 0 : 1) gets optimized?
or maybe we can write (map.xsize & 1) to make sure about it?
> \
> int MACRO_xcycle = 1;
> \
> int MACRO_positive = 0;
> \
> int MACRO_dxy = 0, MACRO_do_xy;
> \
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
|
|