Revert "Use compiler intrinsic instead of assembly for popcnt"

This reverts commit a69f1d7c20.
This commit is contained in:
Gary Linscott
2014-07-01 17:01:54 -04:00
parent a69f1d7c20
commit b9a88da4ab
2 changed files with 3 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ endif
### 3.9 popcnt
ifeq ($(popcnt),yes)
CXXFLAGS += -msse4.2 -DUSE_POPCNT
CXXFLAGS += -msse3 -DUSE_POPCNT
endif
### 3.10 pext

View 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
}