13
0

Fix 32bit alignment in prev commits

this amends
  f52c5ca3ac
and
  5abe677fea
This commit is contained in:
Robin Gareus 2020-09-28 03:20:14 +02:00
parent f52c5ca3ac
commit 117184c3bd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ private:
static size_t align32 (size_t s) { static size_t align32 (size_t s) {
#if defined(__arm__) || defined(__aarch64__) #if defined(__arm__) || defined(__aarch64__)
return s + s % 4; return ((s - 1) | 3) + 1
#else #else
return s; return s;
#endif #endif

View File

@ -382,7 +382,7 @@ RTMidiBuffer::alloc_blob (uint32_t size)
uint32_t offset = _pool_size; uint32_t offset = _pool_size;
#if defined(__arm__) || defined(__aarch64_ #if defined(__arm__) || defined(__aarch64_
_pool_size += size + size % 4; _pool_size += ((size - 1) | 3) + 1;
#else #else
_pool_size += size; _pool_size += size;
#endif #endif