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

Function rte_clz64

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

* Get the count of leading 0-bits in v. * * @param v * The value. * @return * The count of leading zero bits. */

Source from the content-addressed store, hash-verified

266 * The count of leading zero bits.
267 */
268static inline unsigned int
269rte_clz64(uint64_t v)
270{
271 unsigned long rv;
272
273 (void)_BitScanReverse64(&rv, v);
274
275 return (unsigned int)(sizeof(v) * CHAR_BIT - 1 - rv);
276}
277
278/**
279 * Get the count of trailing 0-bits in v.

Callers 15

f_lru_posFunction · 0.85
rte_table_lpm_lookupFunction · 0.85
rte_table_acl_lookupFunction · 0.85
service_runner_funcFunction · 0.85
find_next_nFunction · 0.85
find_prev_nFunction · 0.85
find_prevFunction · 0.85
find_rev_contigFunction · 0.85
rte_rand_maxFunction · 0.85
divide_128_div_64_to_64Function · 0.85

Calls

no outgoing calls

Tested by 1

test_clz64Function · 0.68