enable bit manipulation instruction set 1
authordisservin <disservin.social@gmail.com>
Sun, 16 Oct 2022 12:37:01 +0000 (14:37 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 5 Nov 2022 13:22:20 +0000 (14:22 +0100)
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

index f764596..3584386 100644 (file)
@@ -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