Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bitboard anc VC++

Author: Rafael Andrist

Date: 11:27:08 03/23/02

Go up one level in this thread


On March 23, 2002 at 13:06:37, Christophe Drieu wrote:

>Hi, i want use 64 bits variables in my chess engine. How declare such variable
>with Visual C++ ?

use __int64 for a signed 64 bit integer, or unsigned __int64 for an unsigned 64
bit integer. For a better portability I recommend you to use a typedef, e.g.:

typedef unsigned __int64 BB; //Bitboard
//somewhere in the code
BB whitePawns


Later, you only have to change the typedef, if you switch to another compiler.


regards
Rafael B. Andrist



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.