src/dpdk/lib/librte_eal/include/rte_common.h
static inline int
rte_bsf64(uint64_t v)
{
	return (uint32_t)__builtin_ctzll(v);
}
/**
 * Searches the input parameter for the least significant set bit
 * (starting from zero).
 * If a least significant 1 bit is found, its bit index is returned.
 * If the content of the input parameter is zero, then the content of the return
 * value is undefined.
 * @param v
 *     input parameter, should not be zero.
 * @return
 *     least significant set bit in the input parameter.
 */
Searches the input parameter for the least significant set bit
(starting from zero).
If a least significant 1 bit is found, its bit index is returned.
If the content of the input parameter is zero, then the content of the return
value is undefined.
@param v
input parameter, should not be zero.
@return
least significant set bit in the input parameter.
Searches the input parameter for the least significant set bit ( starting from zero ) . If a least significant 1 bit is found its bit index is returned . If the content of the input parameter is zero then the content of the return value is undefined . @param v input parameter should not be zero . @return least significant set bit in the input parameter .
static inline int
rte_bsf64(uint64_t v)
{
	return (uint32_t)__builtin_ctzll(v);
}
static inline int rte_bsf64 ( uint64_t v ) { return ( uint32_t ) __builtin_ctzll ( v ) ; }
Searches the input parameter for the least significant set bit
 (starting from zero).
Searches the input parameter for the least significant set bit ( starting from zero ) .