X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=a0a61600766d4e9873d7a55858d0652c5b787593;hp=23e69d2ef03a8cec91e05c3ff64650d5d99b3bcf;hb=7b8ffe0f5d89784c6b360331a7781604305371d9;hpb=1277a428237eec3299c6606951fac014bb3ef851 diff --git a/src/types.h b/src/types.h index 23e69d2e..a0a61600 100644 --- a/src/types.h +++ b/src/types.h @@ -79,14 +79,6 @@ # define pext(b, m) (0) #endif -#ifdef _MSC_VER -# define FORCE_INLINE __forceinline -#elif defined(__GNUC__) -# define FORCE_INLINE inline __attribute__((always_inline)) -#else -# define FORCE_INLINE inline -#endif - #ifdef USE_POPCNT const bool HasPopCnt = true; #else @@ -194,7 +186,7 @@ enum Value : int { PawnValueMg = 198, PawnValueEg = 258, KnightValueMg = 817, KnightValueEg = 846, BishopValueMg = 836, BishopValueEg = 857, - RookValueMg = 1270, RookValueEg = 1278, + RookValueMg = 1270, RookValueEg = 1281, QueenValueMg = 2521, QueenValueEg = 2558, MidgameLimit = 15581, EndgameLimit = 3998 @@ -417,7 +409,7 @@ inline MoveType type_of(Move m) { } inline PieceType promotion_type(Move m) { - return PieceType(((m >> 12) & 3) + 2); + return PieceType(((m >> 12) & 3) + KNIGHT); } inline Move make_move(Square from, Square to) {