]> git.sesse.net Git - stockfish/blobdiff - src/bitcount.h
Revert "Use compiler intrinsic instead of assembly for popcnt"
[stockfish] / src / bitcount.h
index 9feed19f9755a94be0022f3e9cf5c891972589d0..f84c51cb8596caf76e658d126330c898dafde7f8 100644 (file)
@@ -96,7 +96,8 @@ inline int popcount<CNT_HW_POPCNT>(Bitboard b) {
 
 #else
 
-  return __builtin_popcountll(b);
+  __asm__("popcnt %1, %0" : "=r" (b) : "r" (b));
+  return b;
 
 #endif
 }