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

Function eval_uor_max

dpdk/lib/bpf/bpf_validate.c:401–407  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

399
400/* estimate max possible value for (v1 | v2) */
401static uint64_t
402eval_uor_max(uint64_t v1, uint64_t v2, size_t opsz)
403{
404 v1 = eval_umax_bits(v1, opsz);
405 v2 = eval_umax_bits(v2, opsz);
406 return (v1 | v2);
407}
408
409static void
410eval_and(struct bpf_reg_val *rd, const struct bpf_reg_val *rs, size_t opsz,

Callers 2

eval_orFunction · 0.85
eval_xorFunction · 0.85

Calls 1

eval_umax_bitsFunction · 0.85

Tested by

no test coverage detected