Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [PATCH] is_normal_tile function
Home

[Freeciv-Dev] Re: [PATCH] is_normal_tile function

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] is_normal_tile function
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Wed, 15 Aug 2001 14:05:02 -0700 (PDT)

On Wed, 15 Aug 2001, Raimar Falke wrote:
> > you might want to use Ross' geeky way of writing such things:
> > 
> > return ((unsigned) y < (unsigned) map.ysize) && (....)
> > 
> > or am I as usual missing something?
> 
> It is interesting to see that even a simple function can be
> obfuscated.

But it's faster!  I like it when I see clever optimizations that I wouldn't
have thought of myself.  I wonder what would happen to if tried to compile
that on some old 70s computer that didn't use twos compliment?



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