Skip to content
Commit cf974371 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Andrew Boie
Browse files

mempool: make alignment/rounding 64-bit compatible



Minimum alignment and rounding must be done on a word boundary. Let's
replace _ALIGN4() with WB_UP() which is equivalent on 32-bit targets,
and 64-bit aware.

Also enforce a minimal alignment on the memory pool. This is making
a difference mostly on64-bit targets where the widely used 4-byte
alignment is not sufficient.

The _ALIGN4() macro has no users left so it is removed.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent d62e2296
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment