From b9a32fe3313e0369fc636415a7b292d2485d3e8f Mon Sep 17 00:00:00 2001 From: No name Date: Thu, 9 Jul 2020 22:09:26 +0300 Subject: [PATCH] Define USE_SSE2 for any x86-64 target Rather than only when popcnt=yes x86-64 instruction set includes SSE2. --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 1de2d243..eaa4c867 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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