X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=1a2b45d7eb92053e5f0cd55208832775c475ed44;hb=fad595f5b6b343708fc0b4d8ab15ab73040f84c1;hp=5a4b56ba45ae2383bed345969d93432db8442f98;hpb=c28b9ef182b4a0c3d0483654ebc2b2aca4fc731c;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 5a4b56ba..1a2b45d7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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