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

Function eval_uand_max

dpdk/lib/bpf/bpf_validate.c:392–398  ·  view source on GitHub ↗

estimate max possible value for (v1 & v2) */

Source from the content-addressed store, hash-verified

390
391/* estimate max possible value for (v1 & v2) */
392static uint64_t
393eval_uand_max(uint64_t v1, uint64_t v2, size_t opsz)
394{
395 v1 = eval_umax_bits(v1, opsz);
396 v2 = eval_umax_bits(v2, opsz);
397 return (v1 & v2);
398}
399
400/* estimate max possible value for (v1 | v2) */
401static uint64_t

Callers 1

eval_andFunction · 0.85

Calls 1

eval_umax_bitsFunction · 0.85

Tested by

no test coverage detected