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

	return x - (x >> 1);
}
/**
 * Aligns input parameter to the previous power of 2
 *
 * @param x
 *   The integer value to align
 *
 * @return
 *   Input parameter aligned to the previous power of 2
 */
Aligns input parameter to the previous power of 2
@param x
The integer value to align

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