-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: Improve the general precision of tnum_mul #5815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: Improve the general precision of tnum_mul #5815
Conversation
|
Upstream branch: 4223bf8 |
07f2c0d to
3a9c841
Compare
|
Upstream branch: f4c227c |
6f3fc0b to
4af2b91
Compare
|
Upstream branch: f4c227c |
4af2b91 to
f84f825
Compare
3a9c841 to
f4881a6
Compare
|
Upstream branch: d0f27ff |
f84f825 to
c0ae46d
Compare
f4881a6 to
8f9c214
Compare
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 <[email protected]> Acked-by: Eduard Zingerman <[email protected]> Reviewed-by: Harishankar Vishwanathan <[email protected]> Tested-by: Harishankar Vishwanathan <[email protected]> # Agni
Add new selftest to test the abstract multiplication technique(s) used by the verifier, following the recent improvement in tnum multiplication (tnum_mul). One of the newly added programs, verifier_mul/mul_precise, results in a false positive with the old tnum_mul, while the program passes with the latest one. Signed-off-by: Nandakumar Edamana <[email protected]> Acked-by: Eduard Zingerman <[email protected]> Reviewed-by: Harishankar Vishwanathan <[email protected]>
|
Upstream branch: 2465bb8 |
c0ae46d to
8a3edb7
Compare
c9c941d to
c640618
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=995473 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: Improve the general precision of tnum_mul
version: 6
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473