mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
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
This commit is contained in:
committed by
Marco Costalba
parent
7bce8831d3
commit
9073866491
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user