X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;fp=src%2Fuci.cpp;h=bc0ee0a0ce8718ce6ebaa8ead77b51ca79c4425f;hp=d64863201ccff5e2a6f83c6d07ed4c8622c24e14;hb=5f1843c9cb55afcd3fb1da9e9dc4b0092f25d9f0;hpb=3542033342f15625f808013b69aa8c2d274a2f91 diff --git a/src/uci.cpp b/src/uci.cpp index d6486320..bc0ee0a0 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -211,7 +211,7 @@ namespace { double b = (((bs[0] * m + bs[1]) * m + bs[2]) * m) + bs[3]; // Transform eval to centipawns with limited range - double x = Utility::clamp(double(100 * v) / PawnValueEg, -1000.0, 1000.0); + double x = std::clamp(double(100 * v) / PawnValueEg, -1000.0, 1000.0); // Return win rate in per mille (rounded to nearest) return int(0.5 + 1000 / (1 + std::exp((a - x) / b)));