From c9cfbef9df42a8c4af59815ea27e688605803a27 Mon Sep 17 00:00:00 2001 From: MacroModel Date: Tue, 29 Aug 2023 17:54:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8shuffle=E7=B3=BB=E5=88=97=E6=9C=89?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9A=84=E5=BF=85=E9=A1=BB=20128=20=E9=9C=80?= =?UTF-8?q?=E8=A6=81=20sse4.1=20256=20=E9=9C=80=E8=A6=81=20avx2=20512=20?= =?UTF-8?q?=E9=9C=80=E8=A6=81=20avx512vbmi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Utils/json/parser.h | 2 +- src/fast_io/fast_io_core_impl/simd/cpu_flags.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Utils/json/parser.h b/src/Utils/json/parser.h index 4a038d5..f4d5a31 100644 --- a/src/Utils/json/parser.h +++ b/src/Utils/json/parser.h @@ -32,7 +32,7 @@ struct }; #ifdef __has_builtin -#if (defined(__SSE4_1__) || defined(__SSE4_2__) || defined(__AVX__) || defined(__AVX2__) || defined(__AVX512BW__) || defined(__AVX512VL__) || defined(__AVX512DQ__) || defined(__AVX512F__) || defined(__wasm_simd128__) || defined(__ARM_NEON)) && __has_builtin(__builtin_shuffle) +#if (defined(__SSE4_1__) || defined(__AVX2__) || defined(__AVX512VBMI__) || defined(__ARM_NEON)) && __has_builtin(__builtin_shuffle) #include "parser_sppr_shuffle_impl.h" #else template diff --git a/src/fast_io/fast_io_core_impl/simd/cpu_flags.h b/src/fast_io/fast_io_core_impl/simd/cpu_flags.h index 6f1cc08..60fb3be 100644 --- a/src/fast_io/fast_io_core_impl/simd/cpu_flags.h +++ b/src/fast_io/fast_io_core_impl/simd/cpu_flags.h @@ -70,6 +70,12 @@ true #endif }; +inline constexpr bool avx512vbmi_supported { +#if defined(__AVX512VBMI__) +true +#endif +}; + inline constexpr bool wasmsimd128_supported { #if defined(__wasm_simd128__) -- Gitee