src/dpdk/lib/librte_eal/include/rte_common.h
static inline int
rte_is_aligned(void *ptr, unsigned align)
{
	return RTE_PTR_ALIGN(ptr, align) == ptr;
}
/**
 * Checks if a pointer is aligned to a given power-of-two value
 *
 * @param ptr
 *   The pointer whose alignment is to be checked
 * @param align
 *   The power-of-two value to which the ptr should be aligned
 *
 * @return
 *   True(1) where the pointer is correctly aligned, false(0) otherwise
 */
Checks if a pointer is aligned to a given power-of-two value
@param ptr
The pointer whose alignment is to be checked
@param align
The power-of-two value to which the ptr should be aligned

@return
True(1) where the pointer is correctly aligned, false(0) otherwise
Checks if a pointer is aligned to a given power - of - two value @param ptr The pointer whose alignment is to be checked @param align The power - of - two value to which the ptr should be aligned @return True ( 1 ) where the pointer is correctly aligned false ( 0 ) otherwise
static inline int
rte_is_aligned(void *ptr, unsigned align)
{
	return RTE_PTR_ALIGN(ptr, align) == ptr;
}
static inline int rte_is_aligned ( void * ptr , unsigned align ) { return RTE_PTR_ALIGN ( ptr , align ) == ptr ; }
Checks if a pointer is aligned to a given power-of-two value
 @param ptr
   The pointer whose alignment is to be checked
 @param align
   The power-of-two value to which the ptr should be aligned
Checks if a pointer is aligned to a given power - of - two value @param ptr The pointer whose alignment is to be checked @param align The power - of - two value to which the ptr should be aligned