Synopsis
#define LIBMEM_ADDRESS_IS_ALIGNED(address, width) \
   ((((uint32_t)address) & ((width) - 1)) == 0)
Description

LIBMEM_ADDRESS_IS_ALIGNED is used to determine whether an address is aligned to a specified width.

address — The address to check alignment of.

width — The alignment width.

LIBMEM_ADDRESS_IS_ALIGNED returns — Non-zero if address is aligned.