From: Stephen Hemminger <stephen@networkplumber.org>
To: <pbhagavatula@marvell.com>
Cc: <jerinj@marvell.com>, <dev@dpdk.org>, <stable@dpdk.org>,
Stefan Kanthak <stefan.kanthak@nexgo.de>
Subject: Re: [dpdk-dev] [PATCH] eal: fix large multiple calculation in reciprocal division
Date: Mon, 15 Apr 2019 08:44:44 -0700 [thread overview]
Message-ID: <20190415084444.30c10fba@shemminger-XPS-13-9360> (raw)
Message-ID: <20190415154444.DEuTgs7_fA_PKzBRzTxrhVcSkgRM3pk3M8sOx3izBZY@z> (raw)
In-Reply-To: <20190414052325.15984-1-pbhagavatula@marvell.com>
On Sun, 14 Apr 2019 10:52:59 +0530
<pbhagavatula@marvell.com> wrote:
> + int64_t i;
Since i only does 1..64 it can be int.
> + uint64_t t;
> +
> + for (i = 1; i <= 64; i++) {
> + t = x >> 63;
> + x = (x << 1) | (y >> 63);
> + y = y << 1;
> + if ((x | t) >= z) {
> + x = x - z;
> + y = y + 1;
next prev parent reply other threads:[~2019-04-15 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-14 5:22 pbhagavatula
2019-04-14 5:22 ` pbhagavatula
2019-04-15 15:44 ` Stephen Hemminger [this message]
2019-04-15 15:44 ` Stephen Hemminger
2019-04-16 9:07 ` Stefan Kanthak
2019-04-16 9:07 ` Stefan Kanthak
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=20190415084444.30c10fba@shemminger-XPS-13-9360 \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=pbhagavatula@marvell.com \
--cc=stable@dpdk.org \
--cc=stefan.kanthak@nexgo.de \
/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).