commit | cf974371fbccb66939c5b73e546ada6aacf9021c | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Wed Jun 26 11:32:58 2019 -0400 |
committer | Andrew Boie <andrewboie@gmail.com> | Tue Jul 02 19:41:20 2019 -0700 |
tree | 052c33dc405781f53f4387e7aab20173bb583ad7 | |
parent | d62e229680574718385b420516c3613f3d8ae15a [diff] |
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: Nicolas Pitre <npitre@baylibre.com>