mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Makefile: small follow-up for comp=msys2 removal
This commit is contained in:
parent
d8d1ecca8c
commit
6e2236c37a
2 changed files with 8 additions and 9 deletions
15
src/Makefile
15
src/Makefile
|
@ -424,42 +424,42 @@ endif
|
||||||
|
|
||||||
ifeq ($(avx2),yes)
|
ifeq ($(avx2),yes)
|
||||||
CXXFLAGS += -DUSE_AVX2
|
CXXFLAGS += -DUSE_AVX2
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -mavx2
|
CXXFLAGS += -mavx2
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(avx512),yes)
|
ifeq ($(avx512),yes)
|
||||||
CXXFLAGS += -DUSE_AVX512
|
CXXFLAGS += -DUSE_AVX512
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -mavx512bw
|
CXXFLAGS += -mavx512bw
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(sse42),yes)
|
ifeq ($(sse42),yes)
|
||||||
CXXFLAGS += -DUSE_SSE42
|
CXXFLAGS += -DUSE_SSE42
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -msse4.2
|
CXXFLAGS += -msse4.2
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(sse41),yes)
|
ifeq ($(sse41),yes)
|
||||||
CXXFLAGS += -DUSE_SSE41
|
CXXFLAGS += -DUSE_SSE41
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -msse4.1
|
CXXFLAGS += -msse4.1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ssse3),yes)
|
ifeq ($(ssse3),yes)
|
||||||
CXXFLAGS += -DUSE_SSSE3
|
CXXFLAGS += -DUSE_SSSE3
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -mssse3
|
CXXFLAGS += -mssse3
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(sse3),yes)
|
ifeq ($(sse3),yes)
|
||||||
CXXFLAGS += -DUSE_SSE3
|
CXXFLAGS += -DUSE_SSE3
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -msse3
|
CXXFLAGS += -msse3
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -471,7 +471,7 @@ endif
|
||||||
### 3.7 pext
|
### 3.7 pext
|
||||||
ifeq ($(pext),yes)
|
ifeq ($(pext),yes)
|
||||||
CXXFLAGS += -DUSE_PEXT
|
CXXFLAGS += -DUSE_PEXT
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2))
|
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
||||||
CXXFLAGS += -mbmi2
|
CXXFLAGS += -mbmi2
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -551,7 +551,6 @@ help:
|
||||||
@echo "mingw > Gnu compiler with MinGW under Windows"
|
@echo "mingw > Gnu compiler with MinGW under Windows"
|
||||||
@echo "clang > LLVM Clang compiler"
|
@echo "clang > LLVM Clang compiler"
|
||||||
@echo "icc > Intel compiler"
|
@echo "icc > Intel compiler"
|
||||||
@echo "msys2 > MSYS2"
|
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Simple examples. If you don't know what to do, you likely want to run: "
|
@echo "Simple examples. If you don't know what to do, you likely want to run: "
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
|
@ -1014,7 +1014,7 @@ moves_loop: // When in check, search starts from here
|
||||||
moveCountPruning = moveCount >= futility_move_count(improving, depth);
|
moveCountPruning = moveCount >= futility_move_count(improving, depth);
|
||||||
|
|
||||||
// Reduced depth of the next LMR search
|
// Reduced depth of the next LMR search
|
||||||
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0);
|
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0) + (type_of(movedPiece) == KING);
|
||||||
|
|
||||||
if ( !captureOrPromotion
|
if ( !captureOrPromotion
|
||||||
&& !givesCheck)
|
&& !givesCheck)
|
||||||
|
|
Loading…
Add table
Reference in a new issue