mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:53:33 +08:00
Increased MemPoolAlignment (16 bytes)
This commit is contained in:
@@ -69,7 +69,7 @@ enum { MemPoolBlockSize = UAVCAN_MEM_POOL_BLOCK_SIZE };
|
|||||||
enum { MemPoolBlockSize = 48 };
|
enum { MemPoolBlockSize = 48 };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum { MemPoolAlignment = 8 };
|
enum { MemPoolAlignment = 16 };
|
||||||
|
|
||||||
typedef char _alignment_check_for_MEM_POOL_BLOCK_SIZE[((MemPoolBlockSize & (MemPoolAlignment - 1)) == 0) ? 1 : -1];
|
typedef char _alignment_check_for_MEM_POOL_BLOCK_SIZE[((MemPoolBlockSize & (MemPoolAlignment - 1)) == 0) ? 1 : -1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user