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

Function rte_bsf32

dpdk/lib/eal/include/rte_bitops.h:486–490  ·  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

484 * least significant set bit in the input parameter.
485 */
486static inline uint32_t
487rte_bsf32(uint32_t v)
488{
489 return (uint32_t)rte_ctz32(v);
490}
491
492/**
493 * Searches the input parameter for the least significant set bit

Callers 15

rte_bsf32_safeFunction · 0.70
rte_log2_u32Function · 0.70
get_anon_sizeFunction · 0.50
rte_softrssFunction · 0.50
rte_softrss_beFunction · 0.50
rte_efd_createFunction · 0.50
timer_get_skiplist_levelFunction · 0.50
scan_forwardFunction · 0.50
rss_funcFunction · 0.50

Calls 1

rte_ctz32Function · 0.85

Tested by 1

test_bsfFunction · 0.40