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

Function cxgbe_fls

dpdk/drivers/net/cxgbe/cxgbe_compat.h:199–202  ·  view source on GitHub ↗

* cxgbe_fls - find last (most-significant) bit set * @x: the word to search * * This is defined the same way as ffs. * Note cxgbe_fls(0) = 0, cxgbe_fls(1) = 1, cxgbe_fls(0x80000000) = 32. */

Source from the content-addressed store, hash-verified

197 * Note cxgbe_fls(0) = 0, cxgbe_fls(1) = 1, cxgbe_fls(0x80000000) = 32.
198 */
199static inline int cxgbe_fls(int x)
200{
201 return x ? sizeof(x) * 8 - rte_clz32(x) : 0;
202}
203
204static inline unsigned long ilog2(unsigned long n)
205{

Callers 2

t4_load_mtusFunction · 0.85

Calls 1

rte_clz32Function · 0.85

Tested by

no test coverage detected