bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduard Zingerman <eddyz87@gmail.com>
To: Nandakumar Edamana <nandakumar@nandakumar.co.in>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH v2 bpf-next] bpf: improve the general precision of tnum_mul
Date: Fri, 15 Aug 2025 12:10:12 -0700	[thread overview]
Message-ID: <e7cb82ac838e28620324f70907235d2b8c75262f.camel@gmail.com> (raw)
In-Reply-To: <20250815140510.1287598-1-nandakumar@nandakumar.co.in>

On Fri, 2025-08-15 at 19:35 +0530, Nandakumar Edamana wrote:
> This commit addresses a challenge explained in an open question ("How
> can we incorporate correlation in unknown bits across partial
> products?") left by Harishankar et al. in their paper:
> https://arxiv.org/abs/2105.05398
> 
> When LSB(a) is uncertain, we know for sure that it is either 0 or 1,
> from which we could find two possible partial products 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).
> 
> This commit also removes the value-mask decomposition technique
> employed by Harishankar et al., as its direct incorporation did not
> result in any improvements for the new algorithm.
> 
> Signed-off-by: Nandakumar Edamana <nandakumar@nandakumar.co.in>
> ---

Hi Nandakumar,

Could you please provide a selftest demonstrating a difference in behavior?
What technique did you employ to estimate the number of cases when
precision is improved vs worsened? If this is some kind of a program
doing randomized testing, could you please share a link to it?

Thanks,
Eduard

  reply	other threads:[~2025-08-15 19:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15 14:05 [PATCH v2 bpf-next] bpf: improve the general precision of tnum_mul Nandakumar Edamana
2025-08-15 19:10 ` Eduard Zingerman [this message]
2025-08-16  4:58   ` Nandakumar Edamana
2025-08-18 22:16     ` Eduard Zingerman
2025-08-18 22:47     ` Eduard Zingerman
2025-08-18 14:24   ` Daniel Borkmann
2025-08-20  6:15   ` Harishankar Vishwanathan
     [not found]     ` <0ba41cd7-adc0-4c65-b1e0-defd8ebc2d64@nandakumar.co.in>
2025-08-20  7:48       ` Fwd: " Nandakumar Edamana
2025-08-21  5:46         ` Harishankar Vishwanathan
2025-08-20 10:31       ` Nandakumar Edamana
2025-08-18 18:23 ` Jakub Sitnicki
2025-08-18 22:49   ` Eduard Zingerman
2025-08-19  9:20     ` Jakub Sitnicki
2025-08-29  4:04       ` Shung-Hsi Yu
2025-08-18 23:14 ` Eduard Zingerman
     [not found]   ` <3b7b2ed1-bce1-49da-b83c-2ca46850062c@nandakumar.co.in>
2025-08-18 23:31     ` Eduard Zingerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7cb82ac838e28620324f70907235d2b8c75262f.camel@gmail.com \
    --to=eddyz87@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=nandakumar@nandakumar.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).