X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=51adc5b4c0296d60914c3d97f371ada9a657439b;hp=1e14f59b743bfee385ca02243d6b3ef6dc8333b0;hb=42b77ea7eecaf5f31bf87c7075945273685aa4f5;hpb=1277a428237eec3299c6606951fac014bb3ef851 diff --git a/src/movegen.cpp b/src/movegen.cpp index 1e14f59b..51adc5b4 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -66,7 +66,7 @@ namespace { template - inline ExtMove* make_promotions(ExtMove* moveList, Square to, const CheckInfo* ci) { + ExtMove* make_promotions(ExtMove* moveList, Square to, const CheckInfo* ci) { if (Type == CAPTURES || Type == EVASIONS || Type == NON_EVASIONS) *moveList++ = make(to - Delta, to, QUEEN); @@ -219,7 +219,7 @@ namespace { } - template FORCE_INLINE + template ExtMove* generate_moves(const Position& pos, ExtMove* moveList, Color us, Bitboard target, const CheckInfo* ci) { @@ -232,7 +232,7 @@ namespace { if (Checks) { if ( (Pt == BISHOP || Pt == ROOK || Pt == QUEEN) - && !(PseudoAttacks[Pt][from] & target & ci->checkSq[Pt])) + && !(PseudoAttacks[Pt][from] & target & ci->checkSquares[Pt])) continue; if (ci->dcCandidates && (ci->dcCandidates & from)) @@ -242,7 +242,7 @@ namespace { Bitboard b = pos.attacks_from(from) & target; if (Checks) - b &= ci->checkSq[Pt]; + b &= ci->checkSquares[Pt]; while (b) *moveList++ = make_move(from, pop_lsb(&b)); @@ -252,7 +252,7 @@ namespace { } - template FORCE_INLINE + template ExtMove* generate_all(const Position& pos, ExtMove* moveList, Bitboard target, const CheckInfo* ci = nullptr) {