From 9073866491ebade21f748e2f824c37a3398e01a6 Mon Sep 17 00:00:00 2001 From: Jean-Francois Romang Date: Mon, 14 Apr 2014 07:10:39 +0200 Subject: [PATCH 1/1] Enable BMI1 too when using BMI2 ARCH Adding BMI1 allows the compiler to use _blsr_u64 automatically (the advertised 0.3% speed gain). I verified that the compiler does not use this instruction with the -mbmi2 flag only. Also, all processors supporting BMI2 is also supporting BMI1. No functional change --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 2be749ce..1ae8bfac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -293,7 +293,7 @@ endif ifeq ($(pext),yes) CXXFLAGS += -DUSE_PEXT ifeq ($(comp),$(filter $(comp),gcc clang mingw)) - CXXFLAGS += -mbmi2 + CXXFLAGS += -mbmi -mbmi2 endif endif -- 2.39.2