src/dpdk/lib/librte_eal/include/rte_common.h
static inline int
rte_is_power_of_2(uint32_t n)
{
	return n && !(n & (n - 1));
}
/**
 * Returns true if n is a power of 2
 * @param n
 *     Number to check
 * @return 1 if true, 0 otherwise
 */
Returns true if n is a power of 2
@param n
Number to check
@return 1 if true, 0 otherwise
Returns true if n is a power of 2 @param n Number to check @return 1 if true 0 otherwise
static inline int
rte_is_power_of_2(uint32_t n)
{
	return n && !(n & (n - 1));
}
static inline int rte_is_power_of_2 ( uint32_t n ) { return n && ! ( n & ( n - 1 ) ) ; }
Returns true if n is a power of 2
 @param n
     Number to check
 @return 1 if true, 0 otherwise
Returns true if n is a power of 2 @param n Number to check @return 1 if true 0 otherwise