]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Unify BitCountType selection
[stockfish] / src / endgame.cpp
index e44212b887b042109f241dd89515c72ce2fa16b4..19c5b0b8c6c45c97d89d5538095ed447680c8c15 100644 (file)
@@ -369,7 +369,7 @@ Value Endgame<KBBKN>::operator()(const Position& pos) const {
   result += Value(square_distance(bksq, nsq) * 32);
 
   // Bonus for restricting the knight's mobility
-  result += Value((8 - count_1s<CNT32_MAX15>(pos.attacks_from<KNIGHT>(nsq))) * 8);
+  result += Value((8 - popcount<Max15>(pos.attacks_from<KNIGHT>(nsq))) * 8);
 
   return strongerSide == pos.side_to_move() ? result : -result;
 }