src/dpdk/lib/librte_eal/include/rte_common.h
static inline uint32_t
rte_align32pow2(uint32_t x)
{
	x--;
	x = rte_combine32ms1b(x);

	return x + 1;
}
/**
 * Aligns input parameter to the next power of 2
 *
 * @param x
 *   The integer value to align
 *
 * @return
 *   Input parameter aligned to the next power of 2
 */
Aligns input parameter to the next power of 2
@param x
The integer value to align

@return
Input parameter aligned to the next power of 2
Aligns input parameter to the next power of 2 @param x The integer value to align @return Input parameter aligned to the next power of 2
static inline uint32_t
rte_align32pow2(uint32_t x)
{
	x--;
	x = rte_combine32ms1b(x);
	return x + 1;
}
static inline uint32_t rte_align32pow2 ( uint32_t x ) { x -- ; x = rte_combine32ms1b ( x ) ; return x + 1 ; }
Aligns input parameter to the next power of 2
 @param x
   The integer value to align
Aligns input parameter to the next power of 2 @param x The integer value to align