X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=2149df2ba8fe340326ac45be06440f981e7d8826;hb=6c040c821a50475840607ef5f11c270ee21d61da;hp=cb8179e7a41002882470fb3342cc0f90d3b42be6;hpb=fb03188fc7e96f8bd21177fa2a2990cf8dde7575;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index cb8179e7..2149df2b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -66,14 +66,14 @@ namespace { enum NodeType { Root, PV, NonPV }; // Razoring and futility margin based on depth - inline Value razor_margin(Depth d) { return Value(512 + 32 * d); } - inline Value futility_margin(Depth d) { return Value(200 * d); } + Value razor_margin(Depth d) { return Value(512 + 32 * d); } + Value futility_margin(Depth d) { return Value(200 * d); } // Futility and reductions lookup tables, initialized at startup int FutilityMoveCounts[2][16]; // [improving][depth] Depth Reductions[2][2][64][64]; // [pv][improving][depth][moveNumber] - template inline Depth reduction(bool i, Depth d, int mn) { + template Depth reduction(bool i, Depth d, int mn) { return Reductions[PvNode][i][std::min(d, 63 * ONE_PLY)][std::min(mn, 63)]; } @@ -960,7 +960,6 @@ moves_loop: // When in check and at SpNode search starts from here ss->reduction = reduction(improving, depth, moveCount); if ( (!PvNode && cutNode) - || History[pos.piece_on(to_sq(move))][to_sq(move)] < VALUE_ZERO || ( History[pos.piece_on(to_sq(move))][to_sq(move)] + CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq] [pos.piece_on(to_sq(move))][to_sq(move)] < VALUE_ZERO))