X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes.h;h=2cf52ef123ef9694d9aca8772ed4b9f0183295b8;hb=759b3c79cf94d101163f646b1eb2a9f9c64293ab;hp=3415a6208abde95b2a5ac7009c856a5c962ed646;hpb=1093047e7d72ed0c82e143c2cc0af9ef7b0380ed;p=stockfish diff --git a/src/types.h b/src/types.h index 3415a620..2cf52ef1 100644 --- a/src/types.h +++ b/src/types.h @@ -80,28 +80,28 @@ #endif #ifdef USE_POPCNT -const bool HasPopCnt = true; +constexpr bool HasPopCnt = true; #else -const bool HasPopCnt = false; +constexpr bool HasPopCnt = false; #endif #ifdef USE_PEXT -const bool HasPext = true; +constexpr bool HasPext = true; #else -const bool HasPext = false; +constexpr bool HasPext = false; #endif #ifdef IS_64BIT -const bool Is64Bit = true; +constexpr bool Is64Bit = true; #else -const bool Is64Bit = false; +constexpr bool Is64Bit = false; #endif typedef uint64_t Key; typedef uint64_t Bitboard; -const int MAX_MOVES = 256; -const int MAX_PLY = 128; +constexpr int MAX_MOVES = 256; +constexpr int MAX_PLY = 128; /// A move needs 16 bits to be stored ///