]> git.sesse.net Git - stockfish/commitdiff
Merge branch 'eval_cache'
authorMarco Costalba <mcostalba@gmail.com>
Mon, 10 Dec 2012 08:22:13 +0000 (09:22 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 10 Dec 2012 08:26:02 +0000 (09:26 +0100)
Unusually good result. Defenitly needs further verifications.

After 2160 games at 15"+0.05
Mod vs Orig 486 - 367 - 1307 ELO +19

bench: 6261882

1  2 
src/types.h

diff --combined src/types.h
index 99567bd7e22a608de7ca91a16d81058112661624,2219b40becd8d929e8e73186374e2895b2411e40..785d98986ea39e1cbcab7bbb8e65562ace65efe7
@@@ -35,7 -35,6 +35,7 @@@
  ///               | only in 64-bit mode. For compiling requires hardware with
  ///               | popcnt support.
  
 +#include <cassert>
  #include <cctype>
  #include <climits>
  #include <cstdlib>
@@@ -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) {