Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [Patch] Small patch
Home

[Freeciv-Dev] Re: [Patch] Small patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx, freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch] Small patch
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Sun, 10 Feb 2002 18:49:10 +0000 (GMT)

 --- 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


[Prev in Thread] Current Thread [Next in Thread]