mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Added support for architectures which supports SSE3+POPCNT, SSSE3+POPCNT and SSE41+POPCNT.
This commit is contained in:
parent
c24ad8d8b5
commit
a4786db4c2
1 changed files with 33 additions and 2 deletions
31
src/Makefile
31
src/Makefile
|
@ -145,6 +145,15 @@ ifeq ($(ARCH),x86-64-sse3)
|
|||
ssse3 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-sse3-popcnt)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
popcnt = yes
|
||||
sse = yes
|
||||
sse3 = yes
|
||||
ssse3 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-ssse3)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
|
@ -153,6 +162,15 @@ ifeq ($(ARCH),x86-64-ssse3)
|
|||
ssse3 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-ssse3-popcnt)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
popcnt = yes
|
||||
sse = yes
|
||||
sse3 = yes
|
||||
ssse3 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-sse41)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
|
@ -162,6 +180,16 @@ ifeq ($(ARCH),x86-64-sse41)
|
|||
sse41 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-sse41-popcnt)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
popcnt = yes
|
||||
sse = yes
|
||||
sse3 = yes
|
||||
ssse3 = yes
|
||||
sse41 = yes
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86-64-sse42)
|
||||
arch = x86_64
|
||||
prefetch = yes
|
||||
|
@ -433,6 +461,9 @@ endif
|
|||
### 3.6 popcnt
|
||||
ifeq ($(popcnt),yes)
|
||||
CXXFLAGS += -DUSE_POPCNT
|
||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
||||
CXXFLAGS += -mpopcnt
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(avx2),yes)
|
||||
|
|
Loading…
Add table
Reference in a new issue