#define LIBMEM_ADDRESS_IS_ALIGNED |
( |
address, |
|
|
width |
|
) |
((((uint32_t)address) & ((width) - 1)) == 0) |
|
|
Macro to determine whether an address is aligned to a specified width.
-
Parameters:
-
|
address
|
The address to check alignment of. |
|
width
|
The alignment width. |
-
Returns:
- Non-zero if address is aligned.
|
|