X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=c3911446e7ab38c0528a27ee941033d182bd82bf;hp=9bfe9a4c2e18ce298590436206666beac36b022d;hb=ccd823a4ffd2ed3e60cb03ab49a841742bae1994;hpb=43973f43c660fb5543bd5ab019901df7055d9997 diff --git a/src/types.h b/src/types.h index 9bfe9a4c..c3911446 100644 --- a/src/types.h +++ b/src/types.h @@ -136,7 +136,7 @@ enum CastlingSide { KING_SIDE, QUEEN_SIDE, CASTLING_SIDE_NB = 2 }; -enum CastlingRight { // Defined as in PolyGlot book hash key +enum CastlingRight { NO_CASTLING, WHITE_OO, WHITE_OOO = WHITE_OO << 1, @@ -218,7 +218,7 @@ enum Depth { DEPTH_QS_NO_CHECKS = -1 * ONE_PLY, DEPTH_QS_RECAPTURES = -5 * ONE_PLY, - DEPTH_NONE = -127 * ONE_PLY + DEPTH_NONE = -6 * ONE_PLY }; enum Square { @@ -326,6 +326,8 @@ inline Score operator/(Score s, int i) { return make_score(mg_value(s) / i, eg_value(s) / i); } +CACHE_LINE_ALIGNMENT + extern Value PieceValue[PHASE_NB][PIECE_NB]; struct ExtMove {