aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/new-inl.h
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.ru>2022-02-10 16:47:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:53 +0300
commitb91bcef7c99a119b0846479ef71bfab4beec72ca (patch)
treebe118d54d12a61bc4812ceb0a266a170a2fa3bc9 /library/cpp/yt/memory/new-inl.h
parentf421873774cf0b71743afbe5f6677861e66601ea (diff)
downloadydb-b91bcef7c99a119b0846479ef71bfab4beec72ca.tar.gz
Restoring authorship annotation for <ermolovd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/memory/new-inl.h')
-rw-r--r--library/cpp/yt/memory/new-inl.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/yt/memory/new-inl.h b/library/cpp/yt/memory/new-inl.h
index 0a84818516..63ff4ba97b 100644
--- a/library/cpp/yt/memory/new-inl.h
+++ b/library/cpp/yt/memory/new-inl.h
@@ -92,17 +92,17 @@ struct TRefCountedWrapperWithCookie final
namespace NDetail {
-Y_FORCE_INLINE void* AllignedMalloc(size_t size, size_t allignment)
-{
-#ifdef _win_
- return ::_aligned_malloc(size, allignment);
-#else
- void* ptr = nullptr;
- ::posix_memalign(&ptr, allignment, size);
- return ptr;
-#endif
-}
-
+Y_FORCE_INLINE void* AllignedMalloc(size_t size, size_t allignment)
+{
+#ifdef _win_
+ return ::_aligned_malloc(size, allignment);
+#else
+ void* ptr = nullptr;
+ ::posix_memalign(&ptr, allignment, size);
+ return ptr;
+#endif
+}
+
template <class... Args>
Y_FORCE_INLINE void CustomInitialize(Args... args)
{
@@ -189,7 +189,7 @@ void* AllocateConstSizeAligned()
if (Alignment <= 16) {
return NYTAlloc::AllocateConstSize<Size>();
} else {
- return AllignedMalloc(Size, Alignment);
+ return AllignedMalloc(Size, Alignment);
}
}