MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_bsf64

Function rte_bsf64

dpdk/lib/eal/include/rte_bitops.h:527–531  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

525 * least significant set bit in the input parameter.
526 */
527static inline uint32_t
528rte_bsf64(uint64_t v)
529{
530 return (uint32_t)rte_ctz64(v);
531}
532
533/**
534 * Searches the input parameter for the least significant set bit

Callers 12

rte_bsf64_safeFunction · 0.70
rte_log2_u64Function · 0.70
__ipsec_sad_lookupFunction · 0.50
hn_chim_allocFunction · 0.50
ice_acl_alloc_slot_idFunction · 0.50
i40e_fdir_entry_pool_getFunction · 0.50
i40e_hash_configFunction · 0.50
i40e_hash_reset_confFunction · 0.50
test_bsfFunction · 0.50
test_mbuf_dynFunction · 0.50

Calls 1

rte_ctz64Function · 0.85

Tested by 2

test_bsfFunction · 0.40
test_mbuf_dynFunction · 0.40