aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/bitops.h
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /util/generic/bitops.h
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/bitops.h')
-rw-r--r--util/generic/bitops.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/bitops.h b/util/generic/bitops.h
index 2db15fc59b..9e31bf18d3 100644
--- a/util/generic/bitops.h
+++ b/util/generic/bitops.h
@@ -449,11 +449,11 @@ void SetBits(T& value, T bits) {
value &= ~(maxValue << Offset);
value |= bits << Offset;
}
-
-inline constexpr ui64 NthBit64(int bit) {
- return ui64(1) << bit;
-}
-
-inline constexpr ui64 Mask64(int bits) {
- return NthBit64(bits) - 1;
-}
+
+inline constexpr ui64 NthBit64(int bit) {
+ return ui64(1) << bit;
+}
+
+inline constexpr ui64 Mask64(int bits) {
+ return NthBit64(bits) - 1;
+}