diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /contrib/libs/cxxsupp/libcxxrt/exception.cc | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxxrt/exception.cc')
-rw-r--r-- | contrib/libs/cxxsupp/libcxxrt/exception.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libs/cxxsupp/libcxxrt/exception.cc b/contrib/libs/cxxsupp/libcxxrt/exception.cc index 6baf428ead..95f05ed474 100644 --- a/contrib/libs/cxxsupp/libcxxrt/exception.cc +++ b/contrib/libs/cxxsupp/libcxxrt/exception.cc @@ -652,14 +652,14 @@ static void free_exception(char *e) } } -static constexpr size_t align_to(size_t size, size_t alignment) noexcept { - return (size + alignment - 1) / alignment * alignment; -} - -static_assert(align_to(15, 16) == 16); -static_assert(align_to(16, 16) == 16); -static_assert(align_to(17, 16) == 32); - +static constexpr size_t align_to(size_t size, size_t alignment) noexcept { + return (size + alignment - 1) / alignment * alignment; +} + +static_assert(align_to(15, 16) == 16); +static_assert(align_to(16, 16) == 16); +static_assert(align_to(17, 16) == 32); + static constexpr size_t exception_size = align_to(sizeof(__cxa_exception), 16); static constexpr size_t dependent_exception_size = align_to(sizeof(__cxa_dependent_exception), 16); #ifdef _YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE |