diff options
| author | Jakub Kicinski <[email protected]> | 2018-04-25 04:22:39 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-04-25 07:56:10 +0000 |
| commit | 7bdc97be9075c074be0f0aa9c59a8d2238224743 (patch) | |
| tree | 16281ac7de8247d60c728a93b7db5bc92a1e74ca /net/tipc/sysctl.c | |
| parent | nfp: bpf: tabularize generations of compare operations (diff) | |
| download | kernel-7bdc97be9075c074be0f0aa9c59a8d2238224743.tar.gz kernel-7bdc97be9075c074be0f0aa9c59a8d2238224743.zip | |
nfp: bpf: optimize comparisons to negative constants
Comparison instruction requires a subtraction. If the constant
is negative we are more likely to fit it into a NFP instruction
directly if we change the sign and use addition.
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'net/tipc/sysctl.c')
0 files changed, 0 insertions, 0 deletions
