X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0068cbcac2e609079da443003ca267a87745c933;hp=d0929d5dfb3f34a019979a2825c8014d56b6a6a5;hb=918c29f83ab8a013d3946916887e1d1d7b9cfb9a;hpb=86c20416c85ac93ab982dda404fc268a92636fa6 diff --git a/src/search.cpp b/src/search.cpp index d0929d5d..0068cbca 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -130,8 +130,8 @@ void Search::init() { { double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00; double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25; - Reductions[1][1][hd][mc] = (int8_t) ( pvRed >= 1.0 ? floor( pvRed * int(ONE_PLY)) : 0); - Reductions[0][1][hd][mc] = (int8_t) (nonPVRed >= 1.0 ? floor(nonPVRed * int(ONE_PLY)) : 0); + Reductions[1][1][hd][mc] = int8_t( pvRed >= 1.0 ? pvRed * int(ONE_PLY) : 0); + Reductions[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed * int(ONE_PLY) : 0); Reductions[1][0][hd][mc] = Reductions[1][1][hd][mc]; Reductions[0][0][hd][mc] = Reductions[0][1][hd][mc]; @@ -146,8 +146,8 @@ void Search::init() { // Init futility move count array for (d = 0; d < 32; ++d) { - FutilityMoveCounts[0][d] = 2.4 + 0.222 * pow(d + 0.00, 1.8); - FutilityMoveCounts[1][d] = 3.0 + 0.300 * pow(d + 0.98, 1.8); + FutilityMoveCounts[0][d] = int(2.4 + 0.222 * pow(d + 0.00, 1.8)); + FutilityMoveCounts[1][d] = int(3.0 + 0.300 * pow(d + 0.98, 1.8)); } }