From: Marco Costalba Date: Mon, 10 Dec 2012 08:22:13 +0000 (+0100) Subject: Merge branch 'eval_cache' X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9edc7d6958fd616daecb0ab9ae2aa92042b3d34a;hp=-c Merge branch 'eval_cache' Unusually good result. Defenitly needs further verifications. After 2160 games at 15"+0.05 Mod vs Orig 486 - 367 - 1307 ELO +19 bench: 6261882 --- 9edc7d6958fd616daecb0ab9ae2aa92042b3d34a diff --combined src/types.h index 99567bd7,2219b40b..785d9898 --- a/src/types.h +++ b/src/types.h @@@ -35,7 -35,6 +35,7 @@@ /// | only in 64-bit mode. For compiling requires hardware with /// | popcnt support. +#include #include #include #include @@@ -164,7 -163,7 +164,7 @@@ enum Bound BOUND_NONE = 0, BOUND_UPPER = 1, BOUND_LOWER = 2, - BOUND_EXACT = BOUND_UPPER | BOUND_LOWER + BOUND_EXACT = BOUND_UPPER | BOUND_LOWER | 4 }; enum Value { @@@ -392,8 -391,7 +392,8 @@@ inline PieceType type_of(Piece p) } inline Color color_of(Piece p) { - return p == NO_PIECE ? NO_COLOR : Color(p >> 3); + assert(p != NO_PIECE); + return Color(p >> 3); } inline bool is_ok(Square s) {