]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Rewrite bit counting functions
[stockfish] / src / endgame.cpp
index 913be63f1702c21eb4d76277c2cc4a6daaeb3954..abf27d52b66860eb39be3f6ce4d9137a2fe842ee 100644 (file)
@@ -357,7 +357,7 @@ Value EvaluationFunction<KBBKN>::apply(const Position& pos) const {
   result += Value(square_distance(bksq, nsq) * 32);
 
   // Bonus for restricting the knight's mobility
-  result += Value((8 - count_1s_max_15(pos.attacks_from<KNIGHT>(nsq))) * 8);
+  result += Value((8 - count_1s<CNT32_MAX15>(pos.attacks_from<KNIGHT>(nsq))) * 8);
 
   return strongerSide == pos.side_to_move() ? result : -result;
 }