aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authordtorilov <dtorilov@yandex-team.com>2024-06-26 19:18:09 +0300
committerdtorilov <dtorilov@yandex-team.com>2024-06-26 19:29:45 +0300
commitf718004f99f98b160f7a6730cec7c69fb2b9a3b8 (patch)
tree264b02482f00c1d4c2538fa9ec879f50c99ee164 /library/cpp
parent4a4a85bf3042e9bb04048f0e624ee89e403db4fe (diff)
downloadydb-f718004f99f98b160f7a6730cec7c69fb2b9a3b8.tar.gz
Cosmetics
6ac63b68e1f264939c9b4fc169e9381a70ceab8a
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/memory/tagged_ptr-inl.h4
-rw-r--r--library/cpp/yt/memory/tagged_ptr.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yt/memory/tagged_ptr-inl.h b/library/cpp/yt/memory/tagged_ptr-inl.h
index 99da61ada6..fa1c93de6e 100644
--- a/library/cpp/yt/memory/tagged_ptr-inl.h
+++ b/library/cpp/yt/memory/tagged_ptr-inl.h
@@ -28,7 +28,7 @@ template <class T>
Y_FORCE_INLINE TPackedPtr TTaggedPtr<T>::Pack() const
{
YT_ASSERT((reinterpret_cast<TPackedPtr>(Ptr) & PackedPtrTagMask) == 0);
- return (static_cast<TPackedPtr>(Tag) << PackedPtrAddrsssBits) | reinterpret_cast<TPackedPtr>(Ptr);
+ return (static_cast<TPackedPtr>(Tag) << PackedPtrAddressBits) | reinterpret_cast<TPackedPtr>(Ptr);
}
template <class T>
@@ -36,7 +36,7 @@ Y_FORCE_INLINE TTaggedPtr<T> TTaggedPtr<T>::Unpack(TPackedPtr packedPtr)
{
return {
reinterpret_cast<T*>(packedPtr & PackedPtrAddressMask),
- static_cast<ui16>(packedPtr >> PackedPtrAddrsssBits),
+ static_cast<ui16>(packedPtr >> PackedPtrAddressBits),
};
}
diff --git a/library/cpp/yt/memory/tagged_ptr.h b/library/cpp/yt/memory/tagged_ptr.h
index 65747fa4de..c1a42f5507 100644
--- a/library/cpp/yt/memory/tagged_ptr.h
+++ b/library/cpp/yt/memory/tagged_ptr.h
@@ -9,9 +9,9 @@ namespace NYT {
using TPackedPtr = uintptr_t;
static_assert(sizeof(TPackedPtr) == 8);
-constexpr size_t PackedPtrAddrsssBits = 48;
+constexpr size_t PackedPtrAddressBits = 48;
constexpr size_t PackedPtrTagBits = 16;
-constexpr TPackedPtr PackedPtrAddressMask = (1ULL << PackedPtrAddrsssBits) - 1;
+constexpr TPackedPtr PackedPtrAddressMask = (1ULL << PackedPtrAddressBits) - 1;
constexpr TPackedPtr PackedPtrTagMask = ~PackedPtrAddressMask;
////////////////////////////////////////////////////////////////////////////////