mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Define USE_SSE2 for any x86-64 target
Rather than only when popcnt=yes x86-64 instruction set includes SSE2.
This commit is contained in:
parent
a06234c639
commit
b9a32fe331
1 changed files with 6 additions and 2 deletions
|
@ -373,9 +373,9 @@ ifeq ($(popcnt),yes)
|
|||
ifeq ($(arch),$(filter $(arch),ppc64 armv8-a))
|
||||
CXXFLAGS += -DUSE_POPCNT
|
||||
else ifeq ($(comp),icc)
|
||||
CXXFLAGS += -msse3 -DUSE_POPCNT -DUSE_SSE2
|
||||
CXXFLAGS += -msse3 -DUSE_POPCNT
|
||||
else
|
||||
CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT -DUSE_SSE2
|
||||
CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -393,6 +393,10 @@ ifeq ($(sse41),yes)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(arch),x86_64)
|
||||
CXXFLAGS += -DUSE_SSE2
|
||||
endif
|
||||
|
||||
### 3.7 pext
|
||||
ifeq ($(pext),yes)
|
||||
CXXFLAGS += -DUSE_PEXT
|
||||
|
|
Loading…
Add table
Reference in a new issue