Skip to content

Commit

Permalink
move bmi to avx flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Oct 16, 2022
1 parent 7181116 commit 4488597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ endif
ifeq ($(avx2),yes)
CXXFLAGS += -DUSE_AVX2
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
CXXFLAGS += -mavx2
CXXFLAGS += -mavx2 -mbmi
endif
endif

Expand Down Expand Up @@ -668,7 +668,7 @@ endif
ifeq ($(pext),yes)
CXXFLAGS += -DUSE_PEXT
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
CXXFLAGS += -mbmi2 -mbmi
CXXFLAGS += -mbmi2
endif
endif

Expand Down
2 changes: 1 addition & 1 deletion src/bitboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ inline Bitboard least_significant_square_bb(Bitboard b) {
inline Square pop_lsb(Bitboard& b) {
assert(b);
const Square s = lsb(b);
#if defined(USE_PEXT)
#if defined(USE_AVX)
b = _blsr_u64(b);
#else
b &= b - 1;
Expand Down

0 comments on commit 4488597

Please sign in to comment.