diff options
author | spacelord <spacelord@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | 16747e4f77455cca4932df21eb76f12cb0a97a5c (patch) | |
tree | 4dd6da4102d99d0d69dec53c1050d290a850a9f2 /util/generic/bitmap.h | |
parent | a817f5de12611ec73085eba17f8ec7740a46bdb7 (diff) | |
download | ydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz |
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/bitmap.h')
-rw-r--r-- | util/generic/bitmap.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/bitmap.h b/util/generic/bitmap.h index f77d1824607..8f7d3f2aa40 100644 --- a/util/generic/bitmap.h +++ b/util/generic/bitmap.h @@ -152,7 +152,7 @@ namespace NBitMapPrivate { template <size_t BitCount, typename TChunkType> struct TFixedStorage { - using TChunk = TChunkType; + using TChunk = TChunkType; static constexpr size_t Size = (BitCount + 8 * sizeof(TChunk) - 1) / (8 * sizeof(TChunk)); @@ -202,7 +202,7 @@ namespace NBitMapPrivate { // It uses "on stack" realization with no allocation for one chunk spaces template <typename TChunkType> struct TDynamicStorage { - using TChunk = TChunkType; + using TChunk = TChunkType; size_t Size; TChunk StackData; @@ -298,21 +298,21 @@ namespace NBitMapPrivate { template <size_t BitCount, typename TChunkType> struct TFixedBitMapTraits { - using TChunk = TChunkType; - using TStorage = NBitMapPrivate::TFixedStorage<BitCount, TChunkType>; + using TChunk = TChunkType; + using TStorage = NBitMapPrivate::TFixedStorage<BitCount, TChunkType>; }; template <typename TChunkType> struct TDynamicBitMapTraits { - using TChunk = TChunkType; - using TStorage = NBitMapPrivate::TDynamicStorage<TChunkType>; + using TChunk = TChunkType; + using TStorage = NBitMapPrivate::TDynamicStorage<TChunkType>; }; template <class TTraits> class TBitMapOps { public: - using TChunk = typename TTraits::TChunk; - using TThis = TBitMapOps<TTraits>; + using TChunk = typename TTraits::TChunk; + using TThis = TBitMapOps<TTraits>; private: static_assert(std::is_unsigned<TChunk>::value, "expect std::is_unsigned<TChunk>::value"); @@ -325,7 +325,7 @@ private: template <class> friend class TBitMapOps; - using TStorage = typename TTraits::TStorage; + using TStorage = typename TTraits::TStorage; // The smallest unsigned type, which can be used in bit ops using TIntType = std::conditional_t<sizeof(TChunk) < sizeof(unsigned int), unsigned int, TChunk>; @@ -1080,7 +1080,7 @@ inline TBitMapOps<X> operator~(const TBitMapOps<X>& x) { template <size_t BitCount, typename TChunkType /*= ui64*/> class TBitMap: public TBitMapOps<TFixedBitMapTraits<BitCount, TChunkType>> { private: - using TBase = TBitMapOps<TFixedBitMapTraits<BitCount, TChunkType>>; + using TBase = TBitMapOps<TFixedBitMapTraits<BitCount, TChunkType>>; public: TBitMap() @@ -1102,7 +1102,7 @@ public: } }; -using TDynBitMap = TBitMapOps<TDynamicBitMapTraits<ui64>>; +using TDynBitMap = TBitMapOps<TDynamicBitMapTraits<ui64>>; #define Y_FOR_EACH_BIT(var, bitmap) for (size_t var = (bitmap).FirstNonZeroBit(); var != (bitmap).Size(); var = (bitmap).NextNonZeroBit(var)) |