summaryrefslogtreecommitdiffstats
path: root/util/system/align.h
diff options
context:
space:
mode:
authorAlexander Gololobov <[email protected]>2022-02-10 16:47:37 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:37 +0300
commit39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch)
tree4ec132c1665bd4d68e3628aa18d937c70d32413b /util/system/align.h
parent54295b9bd4dc45c54d804084fd846d945148a7f0 (diff)
Restoring authorship annotation for Alexander Gololobov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/align.h')
-rw-r--r--util/system/align.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/align.h b/util/system/align.h
index ea0bbc5b466..9d7ba39a369 100644
--- a/util/system/align.h
+++ b/util/system/align.h
@@ -15,9 +15,9 @@ static inline T AlignUp(T len, T align) noexcept {
const T alignedResult = AlignDown(len + (align - 1), align);
Y_ASSERT(alignedResult >= len); // check for overflow
return alignedResult;
-}
-
-template <class T>
+}
+
+template <class T>
static inline T AlignUpSpace(T len, T align) noexcept {
Y_ASSERT(IsPowerOf2(align)); // align should be power of 2
return ((T)0 - len) & (align - 1); // AlignUp(len, align) - len;