mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Merge branch 'master' of github.com:nodchip/Stockfish
This commit is contained in:
commit
f1a8580118
3 changed files with 17 additions and 5 deletions
18
src/Makefile
18
src/Makefile
|
@ -160,8 +160,8 @@ endif
|
||||||
|
|
||||||
ifeq ($(ARCH),armv8)
|
ifeq ($(ARCH),armv8)
|
||||||
arch = armv8-a
|
arch = armv8-a
|
||||||
bits = 64
|
|
||||||
prefetch = yes
|
prefetch = yes
|
||||||
|
popcnt = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),ppc-32)
|
ifeq ($(ARCH),ppc-32)
|
||||||
|
@ -370,8 +370,8 @@ endif
|
||||||
|
|
||||||
### 3.6 popcnt
|
### 3.6 popcnt
|
||||||
ifeq ($(popcnt),yes)
|
ifeq ($(popcnt),yes)
|
||||||
ifeq ($(arch),ppc64)
|
ifeq ($(arch),$(filter $(arch),ppc64 armv8-a))
|
||||||
CXXFLAGS += -DUSE_POPCNT -DUSE_SSE2
|
CXXFLAGS += -DUSE_POPCNT
|
||||||
else ifeq ($(comp),icc)
|
else ifeq ($(comp),icc)
|
||||||
CXXFLAGS += -msse3 -DUSE_POPCNT -DUSE_SSE2
|
CXXFLAGS += -msse3 -DUSE_POPCNT -DUSE_SSE2
|
||||||
else
|
else
|
||||||
|
@ -399,10 +399,20 @@ endif
|
||||||
### needs access to the optimization flags.
|
### needs access to the optimization flags.
|
||||||
ifeq ($(optimize),yes)
|
ifeq ($(optimize),yes)
|
||||||
ifeq ($(debug), no)
|
ifeq ($(debug), no)
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
ifeq ($(comp),$(filter $(comp),gcc clang))
|
||||||
CXXFLAGS += -flto
|
CXXFLAGS += -flto
|
||||||
LDFLAGS += $(CXXFLAGS)
|
LDFLAGS += $(CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# To use LTO and static linking on windows, the tool chain requires a recent gcc:
|
||||||
|
# gcc version 10.1 in msys2 or TDM-GCC version 9.2 are know to work, older might not.
|
||||||
|
# So, only enable it for a cross from Linux by default.
|
||||||
|
ifeq ($(comp),mingw)
|
||||||
|
ifeq ($(KERNEL),Linux)
|
||||||
|
CXXFLAGS += -flto
|
||||||
|
LDFLAGS += $(CXXFLAGS)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#if defined(USE_AVX2)
|
#if defined(USE_AVX2)
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
#elif defined(USE_SSE41)
|
||||||
|
#include <smmintrin.h>
|
||||||
#elif defined(USE_SSE2)
|
#elif defined(USE_SSE2)
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -92,7 +92,7 @@ struct LimitsType {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool use_time_management() const {
|
bool use_time_management() const {
|
||||||
return !(mate | movetime | depth | nodes | perft | infinite);
|
return time[WHITE] || time[BLACK];
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Move> searchmoves;
|
std::vector<Move> searchmoves;
|
||||||
|
|
Loading…
Add table
Reference in a new issue