X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b6029e0c71f4dcd3506092a0695b22a0c0446d4c;hp=b47e26a1c974f73e627adf73754aa4ccc5c70b90;hb=c52da3b806b74ba5ab5249784d39da8fec3c7465;hpb=b599da01fa008e5f274a96c948f8346991bfd050 diff --git a/src/search.cpp b/src/search.cpp index b47e26a1..b6029e0c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1417,10 +1417,25 @@ namespace { { //std::cout << std::endl; //for (int d = 2; d < 14; d++) - // std::cout << d << ", " << 300 + 2*(1 << (3*d/4)) << std::endl; + // std::cout << d << ", " << 64*(1+bitScanReverse32(d*d)) << std::endl; //std::cout << std::endl; /* + 64*(1+bitScanReverse32(d*d)) + + 2 -> 256 - 256 + 3 -> 288 - 320 + 4 -> 512 - 384 + 5 -> 544 - 384 + 6 -> 592 - 448 + 7 -> 624 - 448 + 8 -> 672 - 512 + 9 -> 704 - 512 + 10 -> 832 - 512 + 11 -> 864 - 512 + 12 -> 928 - 576 + 13 -> 960 - 576 + 300 + 2*(1 << (3*d/4)) 2 -> 256 - 304 @@ -1458,7 +1473,7 @@ namespace { { if (futilityValue == VALUE_NONE) futilityValue = evaluate(pos, ei, threadID) - + (300 + 2 * (1 << (3 * int(depth) /4))) + + 64*(1+bitScanReverse32(int(depth) * int(depth))) + 4*IncrementalFutilityMargin; futilityValueScaled = futilityValue - moveCount * IncrementalFutilityMargin;