mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
Use acquire() and release() for spinlocks
It is more idiomatick than lock() and unlock() No functional change.
This commit is contained in:
@@ -162,9 +162,9 @@ void MovePicker::score<CAPTURES>() {
|
||||
|
||||
template<>
|
||||
void MovePicker::score<QUIETS>() {
|
||||
Square prevMoveSq = to_sq((ss-1)->currentMove);
|
||||
Piece prevMovePiece = pos.piece_on(prevMoveSq);
|
||||
const HistoryStats &cmh = counterMovesHistory[prevMovePiece][prevMoveSq];
|
||||
|
||||
Square prevSq = to_sq((ss-1)->currentMove);
|
||||
const HistoryStats& cmh = counterMovesHistory[pos.piece_on(prevSq)][prevSq];
|
||||
|
||||
for (auto& m : *this)
|
||||
m.value = history[pos.moved_piece(m)][to_sq(m)]
|
||||
|
||||
Reference in New Issue
Block a user