aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/unaligned_mem_ut.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/system/unaligned_mem_ut.cpp
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/unaligned_mem_ut.cpp')
-rw-r--r--util/system/unaligned_mem_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/unaligned_mem_ut.cpp b/util/system/unaligned_mem_ut.cpp
index 9de3f3e931..3b4ebd8887 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);