X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0068cbcac2e609079da443003ca267a87745c933;hp=2f7ed7be09127428341fc7cb0564bb1ff67ba8f6;hb=918c29f83ab8a013d3946916887e1d1d7b9cfb9a;hpb=93e3b06fe2d441d7011068712fddbc8bf46ce4ec diff --git a/src/search.cpp b/src/search.cpp index 2f7ed7be..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];