]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, x64: save few bytes when mul is in alu32
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 24 Feb 2018 00:08:01 +0000 (01:08 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 24 Feb 2018 06:50:00 +0000 (22:50 -0800)
commitb9685677c7a598e860a2fecc21cbf03b05675cab
tree26e9b52c57d79f91206e09624e5eaaa360275f1f
parentef8a352ca648ac666fb3ed46e6a9a61c27305587
bpf, x64: save few bytes when mul is in alu32

Add a generic emit_mov_reg() helper in order to reuse it in BPF
multiplication to load the src into rax, we can save a few bytes
in alu32 while doing so.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/x86/net/bpf_jit_comp.c