Author: Robert Hyatt
Date: 19:43:08 01/08/03
Go up one level in this thread
On January 08, 2003 at 18:31:45, Dieter Buerssner wrote: >On January 08, 2003 at 18:13:15, Robert Hyatt wrote: > >[Much snipped] >>>>>#if defined(HAS_64BITS) >>>>> typedef unsigned long BITBOARD; >>>>>#else >>>>># if defined(NT_i386) || defined(NT_AXP) >>>>> typedef unsigned __int64 BITBOARD; >>>>># else >>>>> typedef unsigned long long BITBOARD; >>>>># endif >>>>>#endif >>>I am also puzzled by the above code snippet. Actually I cannot see, what the >>>difference would be to slighly simpler looking: >[And more blah ...] > >>Now I see why it is done that way... Notice that the _first_ definition >>is _not_ for "long long" but simply for "long" as that is for 64 bit >architectures. > >Bingo and oops. I was totally blind. Now, I see it, too. My above comment is >just stupid. > >Sorry, >Dieter Not a problem. That is why I called it "spaghetti code". Portability and readability are not always used together. :)
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.