aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/util/target_info.cpp
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:10 +0300
commit1aeb9a455974457866f78722ad98114bafc84e8a (patch)
treee4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/util/target_info.cpp
parentbd5ef432f5cfb1e18851381329d94665a4c22470 (diff)
downloadydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/util/target_info.cpp')
-rw-r--r--contrib/libs/hyperscan/src/util/target_info.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/libs/hyperscan/src/util/target_info.cpp b/contrib/libs/hyperscan/src/util/target_info.cpp
index 66ba5f5acc..ccd8945d4c 100644
--- a/contrib/libs/hyperscan/src/util/target_info.cpp
+++ b/contrib/libs/hyperscan/src/util/target_info.cpp
@@ -46,10 +46,10 @@ bool target_t::can_run_on_code_built_for(const target_t &code_target) const {
return false;
}
- if (!has_avx512() && code_target.has_avx512()) {
- return false;
- }
-
+ if (!has_avx512() && code_target.has_avx512()) {
+ return false;
+ }
+
if (!has_avx512vbmi() && code_target.has_avx512vbmi()) {
return false;
}
@@ -61,19 +61,19 @@ target_t::target_t(const hs_platform_info &p)
: tune(p.tune), cpu_features(p.cpu_features) {}
bool target_t::has_avx2(void) const {
- return cpu_features & HS_CPU_FEATURES_AVX2;
-}
-
-bool target_t::has_avx512(void) const {
- return cpu_features & HS_CPU_FEATURES_AVX512;
+ return cpu_features & HS_CPU_FEATURES_AVX2;
}
+bool target_t::has_avx512(void) const {
+ return cpu_features & HS_CPU_FEATURES_AVX512;
+}
+
bool target_t::has_avx512vbmi(void) const {
return cpu_features & HS_CPU_FEATURES_AVX512VBMI;
}
bool target_t::is_atom_class(void) const {
- return tune == HS_TUNE_FAMILY_SLM || tune == HS_TUNE_FAMILY_GLM;
+ return tune == HS_TUNE_FAMILY_SLM || tune == HS_TUNE_FAMILY_GLM;
}
} // namespace ue2