Fix 32bit alignment in prev commits
this amendsf52c5ca3ac
and5abe677fea
This commit is contained in:
parent
f52c5ca3ac
commit
117184c3bd
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user