Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/interpreter: Remove/explain masks for 32-bit shift operations
We recently fixed the 64-bit arithmetic shift-right operations by adding a mask to the number of bits (as immediates or from the source register) by which to shift, as per the eBPF ISA specification. The 32-bit operations must use the same mask, but .wrapping_shr() already takes care of it for us. Let's add a comment to make it explicit. As it turns out, masking is just as well unnecessary for the non-arithmetic left-right shift operations that we tried to fix recently. Let's also remove the mask there. Signed-off-by: Quentin Monnet <[email protected]>
- Loading branch information