X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=43b01bc9f6e13d8f324b2d33376b7d805a62ed76;hp=cd0d361953663f2aeaf911662b430fa62e83ecaa;hb=a6e0f62a4f83bf4303e920d5f689de7cbc0467e8;hpb=bcbc9bfd1f5efeaa3f1e0b020e405f11984e72ec diff --git a/src/types.h b/src/types.h index cd0d3619..43b01bc9 100644 --- a/src/types.h +++ b/src/types.h @@ -213,7 +213,7 @@ enum Depth { DEPTH_ZERO = 0 * ONE_PLY, DEPTH_QS_CHECKS = -1 * ONE_PLY, DEPTH_QS_NO_CHECKS = -2 * ONE_PLY, - DEPTH_QS_RECAPTURES = -5 * ONE_PLY, + DEPTH_QS_RECAPTURES = -7 * ONE_PLY, DEPTH_NONE = -127 * ONE_PLY }; @@ -325,12 +325,6 @@ inline Score operator/(Score s, int i) { return make_score(mg_value(s) / i, eg_value(s) / i); } -/// Weight score v by score w trying to prevent overflow -inline Score apply_weight(Score v, Score w) { - return make_score((int(mg_value(v)) * mg_value(w)) / 0x100, - (int(eg_value(v)) * eg_value(w)) / 0x100); -} - #undef ENABLE_OPERATORS_ON #undef ENABLE_SAFE_OPERATORS_ON @@ -341,13 +335,8 @@ namespace Zobrist { extern Key castle[CASTLE_RIGHT_NB]; extern Key side; extern Key exclusion; - - void init(); } -CACHE_LINE_ALIGNMENT - -extern Score pieceSquareTable[PIECE_NB][SQUARE_NB]; extern Value PieceValue[PHASE_NB][PIECE_NB]; extern int SquareDistance[SQUARE_NB][SQUARE_NB];