diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:11 +0300 |
commit | 5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch) | |
tree | 339adc63bce23800021202ae4a8328a843dc447a /contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp | |
parent | 1aeb9a455974457866f78722ad98114bafc84e8a (diff) | |
download | ydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp')
-rw-r--r-- | contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp b/contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp index cd0a3590a5..88ae0f5382 100644 --- a/contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp +++ b/contrib/libs/hyperscan/src/fdr/teddy_engine_description.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -44,35 +44,35 @@ namespace ue2 { TeddyEngineDescription::TeddyEngineDescription(const TeddyEngineDef &def) : EngineDescription(def.id, targetByArchFeatures(def.cpu_features), - def.numBuckets), + def.numBuckets), numMasks(def.numMasks), packed(def.packed) {} u32 TeddyEngineDescription::getDefaultFloodSuffixLength() const { return numMasks; } -void getTeddyDescriptions(vector<TeddyEngineDescription> *out) { - static const TeddyEngineDef defns[] = { - { 3, 0 | HS_CPU_FEATURES_AVX2, 1, 16, false }, - { 4, 0 | HS_CPU_FEATURES_AVX2, 1, 16, true }, - { 5, 0 | HS_CPU_FEATURES_AVX2, 2, 16, false }, - { 6, 0 | HS_CPU_FEATURES_AVX2, 2, 16, true }, - { 7, 0 | HS_CPU_FEATURES_AVX2, 3, 16, false }, - { 8, 0 | HS_CPU_FEATURES_AVX2, 3, 16, true }, - { 9, 0 | HS_CPU_FEATURES_AVX2, 4, 16, false }, - { 10, 0 | HS_CPU_FEATURES_AVX2, 4, 16, true }, - { 11, 0, 1, 8, false }, - { 12, 0, 1, 8, true }, - { 13, 0, 2, 8, false }, - { 14, 0, 2, 8, true }, - { 15, 0, 3, 8, false }, - { 16, 0, 3, 8, true }, - { 17, 0, 4, 8, false }, - { 18, 0, 4, 8, true }, - }; - out->clear(); - for (const auto &def : defns) { - out->emplace_back(def); +void getTeddyDescriptions(vector<TeddyEngineDescription> *out) { + static const TeddyEngineDef defns[] = { + { 3, 0 | HS_CPU_FEATURES_AVX2, 1, 16, false }, + { 4, 0 | HS_CPU_FEATURES_AVX2, 1, 16, true }, + { 5, 0 | HS_CPU_FEATURES_AVX2, 2, 16, false }, + { 6, 0 | HS_CPU_FEATURES_AVX2, 2, 16, true }, + { 7, 0 | HS_CPU_FEATURES_AVX2, 3, 16, false }, + { 8, 0 | HS_CPU_FEATURES_AVX2, 3, 16, true }, + { 9, 0 | HS_CPU_FEATURES_AVX2, 4, 16, false }, + { 10, 0 | HS_CPU_FEATURES_AVX2, 4, 16, true }, + { 11, 0, 1, 8, false }, + { 12, 0, 1, 8, true }, + { 13, 0, 2, 8, false }, + { 14, 0, 2, 8, true }, + { 15, 0, 3, 8, false }, + { 16, 0, 3, 8, true }, + { 17, 0, 4, 8, false }, + { 18, 0, 4, 8, true }, + }; + out->clear(); + for (const auto &def : defns) { + out->emplace_back(def); } } |