[dpdk-stable] [dpdk-dev] [PATCH] eal: fix large multiple calculation in reciprocal division
Stephen Hemminger
stephen at networkplumber.org
Mon Apr 15 17:44:44 CEST 2019
On Sun, 14 Apr 2019 10:52:59 +0530
<pbhagavatula at 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;
More information about the stable
mailing list