diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/util/multibit_build.h | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/util/multibit_build.h')
-rw-r--r-- | contrib/libs/hyperscan/src/util/multibit_build.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/libs/hyperscan/src/util/multibit_build.h b/contrib/libs/hyperscan/src/util/multibit_build.h index 24f1bb55b0..72820387fa 100644 --- a/contrib/libs/hyperscan/src/util/multibit_build.h +++ b/contrib/libs/hyperscan/src/util/multibit_build.h @@ -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: @@ -35,41 +35,41 @@ #include "hs_common.h" #include "multibit_internal.h" -#include "hash.h" +#include "hash.h" #include <vector> -inline -bool operator==(const mmbit_sparse_iter &a, const mmbit_sparse_iter &b) { - return a.mask == b.mask && a.val == b.val; +inline +bool operator==(const mmbit_sparse_iter &a, const mmbit_sparse_iter &b) { + return a.mask == b.mask && a.val == b.val; } -namespace std { - -template<> -struct hash<mmbit_sparse_iter> { - size_t operator()(const mmbit_sparse_iter &iter) const { - return ue2::hash_all(iter.mask, iter.val); - } -}; - -} // namespace std - +namespace std { + +template<> +struct hash<mmbit_sparse_iter> { + size_t operator()(const mmbit_sparse_iter &iter) const { + return ue2::hash_all(iter.mask, iter.val); + } +}; + +} // namespace std + namespace ue2 { -/** - * \brief Return the size in bytes of a multibit that can store the given - * number of bits. - * - * This will throw a resource limit assertion if the requested mmbit is too - * large. - */ -u32 mmbit_size(u32 total_bits); - +/** + * \brief Return the size in bytes of a multibit that can store the given + * number of bits. + * + * This will throw a resource limit assertion if the requested mmbit is too + * large. + */ +u32 mmbit_size(u32 total_bits); + /** \brief Construct a sparse iterator over the values in \a bits for a * multibit of size \a total_bits. */ -std::vector<mmbit_sparse_iter> -mmbBuildSparseIterator(const std::vector<u32> &bits, u32 total_bits); +std::vector<mmbit_sparse_iter> +mmbBuildSparseIterator(const std::vector<u32> &bits, u32 total_bits); struct scatter_plan_raw; |