diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/bitops.h | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/bitops.h')
-rw-r--r-- | util/generic/bitops.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/bitops.h b/util/generic/bitops.h index 28983463a6..2db15fc59b 100644 --- a/util/generic/bitops.h +++ b/util/generic/bitops.h @@ -81,7 +81,7 @@ namespace NBitOps { value >>= 1; while (value) { value >>= 1; - ++result; + ++result; } return result; @@ -282,7 +282,7 @@ Y_FORCE_INLINE ui64 MostSignificantBit(ui64 v) { ui64 res = 0; if (v) while (v >>= 1) - ++res; + ++res; #endif return res; } @@ -301,7 +301,7 @@ Y_FORCE_INLINE ui64 LeastSignificantBit(ui64 v) { ui64 res = 0; if (v) { while (!(v & 1)) { - ++res; + ++res; v >>= 1; } } |