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:
Marco Costalba
2014-10-04 06:07:55 +02:00
committed by Joona Kiiski
parent 4b926f227d
commit 74829342ef
3 changed files with 23 additions and 18 deletions

View File

@@ -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))