diff options
author | anelyubin <anelyubin@yandex-team.ru> | 2022-02-10 16:49:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:40 +0300 |
commit | 9dac44a55ede6f682527e82880847f99bd7b2d93 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/bitops.h | |
parent | 8d333d5e773f6b0ef31e7b3c92339af7e71413f6 (diff) | |
download | ydb-9dac44a55ede6f682527e82880847f99bd7b2d93.tar.gz |
Restoring authorship annotation for <anelyubin@yandex-team.ru>. 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 7dedd06efe9..2db15fc59b6 100644 --- a/util/generic/bitops.h +++ b/util/generic/bitops.h @@ -4,7 +4,7 @@ #include "typelist.h" #include <util/system/compiler.h> -#include <util/system/yassert.h> +#include <util/system/yassert.h> #ifdef _MSC_VER #include <intrin.h> @@ -98,7 +98,7 @@ namespace NBitOps { Y_ASSERT(value); // because __builtin_ctz* have undefined result for zero. return __builtin_ctzl(value); } - + inline unsigned CountTrailingZeroBitsImpl(unsigned long long value) noexcept { Y_ASSERT(value); // because __builtin_ctz* have undefined result for zero. return __builtin_ctzll(value); @@ -113,7 +113,7 @@ namespace NBitOps { value >>= 1; ++result; } - + return result; } #endif @@ -210,7 +210,7 @@ static inline T FastClp2(T t) noexcept { Y_ASSERT(t > 0); 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)); -} +} /** * Check if integer is a power of 2. |