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
This commit is contained in:
joergoster
2020-07-01 14:14:27 +02:00
committed by nodchip
parent c8262f8aec
commit 145e4c2a10

View File

@@ -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