diff options
| author | 2025-08-26 09:15:23 +0530 | |
|---|---|---|
| committer | 2025-08-27 15:00:26 -0700 | |
| commit | 1df7dad4d5c49335b72e26d833def960b2de76e3 (patch) | |
| tree | 9f96e2afa5ac408fe3b108e964b586fe4c238793 /scripts/Makefile.thinlto | |
| parent | Merge branch 's390-bpf-add-s390-jit-support-for-timed-may_goto' (diff) | |
bpf: Improve the general precision of tnum_mul
Drop the value-mask decomposition technique and adopt straightforward
long-multiplication with a twist: when LSB(a) is uncertain, find the
two partial products (for LSB(a) = known 0 and LSB(a) = known 1) and
take a union.
Experiment shows that applying this technique in long multiplication
improves the precision in a significant number of cases (at the cost
of losing precision in a relatively lower number of cases).
Signed-off-by: Nandakumar Edamana <nandakumar@nandakumar.co.in>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
Reviewed-by: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20250826034524.2159515-1-nandakumar@nandakumar.co.in
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
