220113.2.1 · 60e35dd271c06e6d2ae120f9e5a5d29963ada428
msvc - Add matcher_avx2, matcher_avx512bw
reading declarations
Changes to msvc/include_ugrep/. All files
@@ -14,6 +14,7 @@ // UGREP options: #define HAVE_AVX2+#define HAVE_AVX512BW #define WITH_COLOR #define WITH_NO_INDENT
msvc/include_ugrep/matcher_avx2.cpp
@@ -0,0 +1,10 @@+#if defined(HAVE_AVX2) || defined(HAVE_AVX512BW)++#if !defined(__AVX2__) || defined(__AVX512BW__)+#error matcher_avx2.cpp must be compiled with /arch:avx2.+#endif++#define COMPILE_AVX2+#include "../../lib/matcher.cpp"++#endif // HAVE_AVX2
msvc/include_ugrep/matcher_avx512bw.cpp
@@ -0,0 +1,10 @@+#if defined(HAVE_AVX512BW)++#if !defined(__AVX512BW__)+#error matcher_avx512bw.cpp must be compiled with /arch:avx512.+#endif++#define COMPILE_AVX512BW+#include "../../lib/matcher.cpp"++#endif // HAVE_AVX512BW