Home
last modified time | relevance | path

Searched refs:SHIFT_MASK_64 (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dinterpreter.rs90 const SHIFT_MASK_64: u64 = 0x3f; in execute_program() constant
386 ebpf::LSH64_IMM => reg[_dst] <<= insn.imm as u64 & SHIFT_MASK_64, in execute_program()
387 ebpf::LSH64_REG => reg[_dst] <<= reg[_src] & SHIFT_MASK_64, in execute_program()
388 ebpf::RSH64_IMM => reg[_dst] >>= insn.imm as u64 & SHIFT_MASK_64, in execute_program()
389 ebpf::RSH64_REG => reg[_dst] >>= reg[_src] & SHIFT_MASK_64, in execute_program()
400 reg[_dst] = (reg[_dst] as i64 >> (insn.imm as u64 & SHIFT_MASK_64)) as u64 in execute_program()
403 reg[_dst] = (reg[_dst] as i64 >> (reg[_src] as u64 & SHIFT_MASK_64)) as u64 in execute_program()