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

Function eval_umax_bits

dpdk/lib/bpf/bpf_validate.c:381–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381static uint64_t
382eval_umax_bits(uint64_t v, size_t opsz)
383{
384 if (v == 0)
385 return 0;
386
387 v = rte_clz64(v);
388 return RTE_LEN2MASK(opsz - v, uint64_t);
389}
390
391/* estimate max possible value for (v1 & v2) */
392static uint64_t

Callers 2

eval_uand_maxFunction · 0.85
eval_uor_maxFunction · 0.85

Calls 1

rte_clz64Function · 0.85

Tested by

no test coverage detected