Make storage blocks aligned to 4 bytes for ARM NEON/VFP instructions

Aligned blocks prevent bus errors in NEON/VFP instructions.

Block pointers are aligned to 4 bytes, that is guaranteed
by aligned mmaped-pointers, the 4 bytes size of the CANARY block and
aligned sizes of blocks.
This commit is contained in:
Michael Krasnyk
2016-06-12 18:05:21 +02:00
parent 12d4832037
commit 04e334e3e2
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ int Storage::Run()
unsigned temp_length;
name_stream.read((char *)&temp_length, sizeof(unsigned));
BOOST_ASSERT_MSG(temp_length ==
BOOST_ASSERT_MSG(shared_layout_ptr->AlignBlockSize(temp_length) ==
shared_layout_ptr->GetBlockSize(SharedDataLayout::NAME_CHAR_LIST),
"Name file corrupted!");