diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/unaligned_mem_ut.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/unaligned_mem_ut.cpp')
-rw-r--r-- | util/system/unaligned_mem_ut.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/unaligned_mem_ut.cpp b/util/system/unaligned_mem_ut.cpp index 3b4ebd8887..9de3f3e931 100644 --- a/util/system/unaligned_mem_ut.cpp +++ b/util/system/unaligned_mem_ut.cpp @@ -33,9 +33,9 @@ Y_UNIT_TEST_SUITE(UnalignedMem) { Y_UNIT_TEST(TestReadWrite) { alignas(ui64) char buf[100]; - WriteUnaligned<ui16>(buf + 1, (ui16)1); - WriteUnaligned<ui32>(buf + 1 + 2, (ui32)2); - WriteUnaligned<ui64>(buf + 1 + 2 + 4, (ui64)3); + WriteUnaligned<ui16>(buf + 1, (ui16)1); + WriteUnaligned<ui32>(buf + 1 + 2, (ui32)2); + WriteUnaligned<ui64>(buf + 1 + 2 + 4, (ui64)3); UNIT_ASSERT_VALUES_EQUAL(ReadUnaligned<ui16>(buf + 1), 1); UNIT_ASSERT_VALUES_EQUAL(ReadUnaligned<ui32>(buf + 1 + 2), 2); @@ -48,9 +48,9 @@ Y_UNIT_TEST_SUITE(UnalignedMem) { alignas(ui64) static char buf[100] = {0}; // static is required for Clobber to work - WriteUnaligned<ui16>(buf + 1, (ui16)1); - WriteUnaligned<ui32>(buf + 1 + 2, (ui32)2); - WriteUnaligned<ui64>(buf + 1 + 2 + 4, (ui64)3); + WriteUnaligned<ui16>(buf + 1, (ui16)1); + WriteUnaligned<ui32>(buf + 1 + 2, (ui32)2); + WriteUnaligned<ui64>(buf + 1 + 2 + 4, (ui64)3); NBench::Clobber(); auto val1 = ReadUnaligned<ui16>(buf + 1); @@ -72,7 +72,7 @@ Y_UNIT_TEST_SUITE(UnalignedMem) { Y_UNIT_TEST(TestReadWrite128) { alignas(TUInt128) char buf[100] = {0}; - WriteUnaligned<TUInt128>(buf + 1, TUInt128::Max()); + WriteUnaligned<TUInt128>(buf + 1, TUInt128::Max()); auto val = ReadUnaligned<TUInt128>(buf + 1); UNIT_ASSERT(val == TUInt128::Max()); } @@ -82,7 +82,7 @@ Y_UNIT_TEST_SUITE(UnalignedMem) { alignas(TUInt128) static char buf[100] = {0}; // static is required for Clobber to work - WriteUnaligned<TUInt128>(buf + 1, TUInt128::Max()); + WriteUnaligned<TUInt128>(buf + 1, TUInt128::Max()); NBench::Clobber(); auto val = ReadUnaligned<TUInt128>(buf + 1); |