X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=577f97d70bb902ad1118472eb0971c2f3feab8c1;hp=396942cd40939b45b6df34d64d61869bb155cffd;hb=5d79af9e0d466572217dc47f5c307f6fd382a646;hpb=a87ea9846d4adc8d2ed8107c072c43b5ef53e4fe diff --git a/src/types.h b/src/types.h index 396942cd..577f97d7 100644 --- a/src/types.h +++ b/src/types.h @@ -41,7 +41,29 @@ typedef __int64 int64_t; #endif // !defined(_MSC_VER) -// Hash keys: +// Hash keys typedef uint64_t Key; +// Bitboard type +typedef uint64_t Bitboard; + + +//// +//// Compiler specific defines +//// + +// Quiet a warning on Intel compiler +#if !defined(__SIZEOF_INT__ ) +#define __SIZEOF_INT__ 0 +#endif + +// Check for 64 bits for different compilers: Intel, MSVC and gcc +#if defined(__x86_64) || defined(_WIN64) || (__SIZEOF_INT__ > 4) +#define IS_64BIT +#endif + +#if defined(IS_64BIT) && (defined(__GNUC__) || defined(__INTEL_COMPILER)) +#define USE_BSFQ +#endif + #endif // !defined(TYPES_H_INCLUDED)