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:
No name
2020-07-09 22:09:26 +03:00
committed by nodchip
parent a06234c639
commit b9a32fe331

View File

@@ -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