From 145e4c2a1006a629327dbd83ffbc7c112f8b8dfc Mon Sep 17 00:00:00 2001 From: joergoster Date: Wed, 1 Jul 2020 14:14:27 +0200 Subject: [PATCH] Add SSE41 switch. This allows building modern compiles with SSE41 enabled, which gives a nice speedup on my Bulldozer CPU. For example: make nnue ARCH=x86-64-modern sse41=yes -j --- src/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Makefile b/src/Makefile index 24a62826..5c8a7a90 100644 --- a/src/Makefile +++ b/src/Makefile @@ -386,6 +386,13 @@ ifeq ($(avx2),yes) endif endif +ifeq ($(sse41),yes) + CXXFLAGS += -DUSE_SSE41 + ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2)) + CXXFLAGS += -msse4 + endif +endif + ### 3.7 pext ifeq ($(pext),yes) CXXFLAGS += -DUSE_PEXT