mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Revert "Use compiler intrinsic instead of assembly for popcnt"
This reverts commit a69f1d7c20
.
This commit is contained in:
parent
a69f1d7c20
commit
b9a88da4ab
2 changed files with 3 additions and 2 deletions
|
@ -285,7 +285,7 @@ endif
|
||||||
|
|
||||||
### 3.9 popcnt
|
### 3.9 popcnt
|
||||||
ifeq ($(popcnt),yes)
|
ifeq ($(popcnt),yes)
|
||||||
CXXFLAGS += -msse4.2 -DUSE_POPCNT
|
CXXFLAGS += -msse3 -DUSE_POPCNT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### 3.10 pext
|
### 3.10 pext
|
||||||
|
|
|
@ -96,7 +96,8 @@ inline int popcount<CNT_HW_POPCNT>(Bitboard b) {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
return __builtin_popcountll(b);
|
__asm__("popcnt %1, %0" : "=r" (b) : "r" (b));
|
||||||
|
return b;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue