mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Reformat and rename hash_after_move()
Align to standard coding style and properly use enum types. Rename while there. No functional change.
This commit is contained in:
committed by
Joona Kiiski
parent
4b926f227d
commit
74829342ef
@@ -788,8 +788,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
}
|
||||
}
|
||||
|
||||
// Speculative prefetch
|
||||
prefetch((char*)TT.first_entry(pos.hash_after_move(move)));
|
||||
// Speculative prefetch as early as possible
|
||||
prefetch((char*)TT.first_entry(pos.key_after(move)));
|
||||
|
||||
// Check for legality just before making the move
|
||||
if (!RootNode && !SpNode && !pos.legal(move, ci.pinned))
|
||||
@@ -1140,8 +1140,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
&& pos.see_sign(move) < VALUE_ZERO)
|
||||
continue;
|
||||
|
||||
// Speculative prefetch
|
||||
prefetch((char*)TT.first_entry(pos.hash_after_move(move)));
|
||||
// Speculative prefetch as early as possible
|
||||
prefetch((char*)TT.first_entry(pos.key_after(move)));
|
||||
|
||||
// Check for legality just before making the move
|
||||
if (!pos.legal(move, ci.pinned))
|
||||
|
||||
Reference in New Issue
Block a user