#define LIBMEM_ALIGNED_ADDRESS |
( |
address, |
|
|
width |
|
) |
((uint8_t *)(((uint32_t)address) & (~((width) - 1)))) |
|
|
Macro to return an address aligned to a specified width.
-
Parameters:
-
|
address
|
The address to align. |
|
width
|
The alignment width. |
-
Returns:
- The aligned address.
|
|