mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
support popcnt on armv8
* Supports popcnt (thanks @daylen) * bits = 64 is now the default Tested with g++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 on ThunderX CN8890, yields about 9% speedup. Also tested with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final). closes https://github.com/official-stockfish/Stockfish/pull/2770 No functional change.
This commit is contained in:
parent
a84e3ac287
commit
aecfca2dc2
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ endif
|
||||||
|
|
||||||
ifeq ($(ARCH),armv8)
|
ifeq ($(ARCH),armv8)
|
||||||
arch = armv8-a
|
arch = armv8-a
|
||||||
bits = 64
|
|
||||||
prefetch = yes
|
prefetch = yes
|
||||||
|
popcnt = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),ppc-32)
|
ifeq ($(ARCH),ppc-32)
|
||||||
|
@ -322,7 +322,7 @@ endif
|
||||||
|
|
||||||
### 3.6 popcnt
|
### 3.6 popcnt
|
||||||
ifeq ($(popcnt),yes)
|
ifeq ($(popcnt),yes)
|
||||||
ifeq ($(arch),ppc64)
|
ifeq ($(arch),$(filter $(arch),ppc64 armv8-a))
|
||||||
CXXFLAGS += -DUSE_POPCNT
|
CXXFLAGS += -DUSE_POPCNT
|
||||||
else ifeq ($(comp),icc)
|
else ifeq ($(comp),icc)
|
||||||
CXXFLAGS += -msse3 -DUSE_POPCNT
|
CXXFLAGS += -msse3 -DUSE_POPCNT
|
||||||
|
|
Loading…
Add table
Reference in a new issue