]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ebpf32: Rework 64 bits shifts to avoid tests and branches
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 12 Apr 2021 11:44:17 +0000 (11:44 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:52:33 +0000 (22:52 +1000)
commit45c38eb70cb395f4aae41bffc5f45443db7bf44d
tree1d64a3c35e86d7b7c89c4a4e6d92a7c81846ccc6
parent9ad07b704f3f90d0d8d9d2d657a1e5851994c236
powerpc/ebpf32: Rework 64 bits shifts to avoid tests and branches

Re-implement BPF_ALU64 | BPF_{LSH/RSH/ARSH} | BPF_X with branchless
implementation copied from misc_32.S.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/03167350b05b2fe8b741e53363ee37709d0f878d.1618227846.git.christophe.leroy@csgroup.eu
arch/powerpc/net/bpf_jit_comp32.c