From f34d635ac85f51f095faa104198a7c309fa9a603 Mon Sep 17 00:00:00 2001 From: disservin Date: Sun, 16 Oct 2022 14:37:01 +0200 Subject: [PATCH] enable bit manipulation instruction set 1 bmi1 enables the use of _blsr_u64 for pop_lsb, and is availabe when avx2 is. verified a small speedup (0.2 - 0.6%) closes https://github.com/official-stockfish/Stockfish/pull/4202 No functional change --- src/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Makefile b/src/Makefile index f764596..3584386 100644 --- a/src/Makefile +++ b/src/Makefile @@ -571,7 +571,7 @@ endif ifeq ($(avx2),yes) CXXFLAGS += -DUSE_AVX2 ifeq ($(comp),$(filter $(comp),gcc clang mingw)) - CXXFLAGS += -mavx2 + CXXFLAGS += -mavx2 -mbmi endif endif -- 1.7.0.4