mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
Reformat SEE to better document the function
This is one of the most difficult to understand but also most important and speed critical functions of SF. This patch rewrites some part of it to hopefully make it clearer and drop some redundant variables in the process. Same speed than master (or even a bit more). Thanks to Chris Cain for useful feedback. No functional change.
This commit is contained in:
committed by
Stéphane Nicolet
parent
52f92d05a9
commit
a09eee5798
@@ -88,8 +88,8 @@ namespace {
|
||||
template<Color Us>
|
||||
Score evaluate(const Position& pos, Pawns::Entry* e) {
|
||||
|
||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||
const Direction Up = (Us == WHITE ? NORTH : SOUTH);
|
||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||
const Direction Up = (Us == WHITE ? NORTH : SOUTH);
|
||||
|
||||
Bitboard b, neighbours, stoppers, doubled, supported, phalanx;
|
||||
Bitboard lever, leverPush;
|
||||
|
||||
Reference in New Issue
Block a user