diff options
| author | tender-bum <[email protected]> | 2022-02-10 16:50:01 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:01 +0300 |
| commit | 4aef354b224559d2b031487a10d4f5cc6e82e95a (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/bitops.h | |
| parent | c78b06a63de7beec995c1007bc5332bdf3d75b69 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/bitops.h')
| -rw-r--r-- | util/generic/bitops.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/bitops.h b/util/generic/bitops.h index a1862b1d614..2db15fc59b6 100644 --- a/util/generic/bitops.h +++ b/util/generic/bitops.h @@ -1,7 +1,7 @@ #pragma once #include "ylimits.h" -#include "typelist.h" +#include "typelist.h" #include <util/system/compiler.h> #include <util/system/yassert.h> @@ -208,7 +208,7 @@ namespace NBitOps { template <typename T> static inline T FastClp2(T t) noexcept { Y_ASSERT(t > 0); - using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; + using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; return 1 + ::NBitOps::NPrivate::TClp2Helper<sizeof(TCvt) * 4, T>::Calc(static_cast<TCvt>(t)); } @@ -226,7 +226,7 @@ Y_CONST_FUNCTION constexpr bool IsPowerOf2(T v) noexcept { template <typename T> static inline unsigned GetValueBitCount(T value) noexcept { Y_ASSERT(value > 0); - using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; + using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; return ::NBitOps::NPrivate::GetValueBitCountImpl(static_cast<TCvt>(value)); } @@ -236,7 +236,7 @@ static inline unsigned GetValueBitCount(T value) noexcept { template <typename T> static inline unsigned CountTrailingZeroBits(T value) noexcept { Y_ASSERT(value > 0); - using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; + using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type; return ::NBitOps::NPrivate::CountTrailingZeroBitsImpl(static_cast<TCvt>(value)); } |
