mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Move PieceValue[] and SlidingArray[] where they belong
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -59,6 +59,10 @@ namespace {
|
||||
// Used for debugging SMP code.
|
||||
const bool FakeSplit = false;
|
||||
|
||||
// Fast lookup table of sliding pieces indexed by Piece
|
||||
const bool Slidings[18] = { 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1 };
|
||||
inline bool piece_is_slider(Piece p) { return Slidings[p]; }
|
||||
|
||||
// ThreadsManager class is used to handle all the threads related stuff in search,
|
||||
// init, starting, parking and, the most important, launching a slave thread at a
|
||||
// split point are what this class does. All the access to shared thread data is
|
||||
|
||||
Reference in New Issue
Block a user