Re: [dpdk-dev] [PATCH 2/2] eal: add u64 bit variant for reciprocal

2017-08-29 Thread Pavan Nikhilesh Bhagavatula
On Tue, Aug 29, 2017 at 12:38:00PM -0700, Stephen Hemminger wrote: > On Wed, 30 Aug 2017 00:16:18 +0530 > Pavan Nikhilesh wrote: > Hi Stephen, > > +static inline uint64_t > > +mullhi_u64(uint64_t x, uint64_t y) > > { > > - uint32_t t = (uint32_t)(((uint64_t)a * R.m) >> 32); > > + __uint128_t

Re: [dpdk-dev] [PATCH 2/2] eal: add u64 bit variant for reciprocal

2017-08-29 Thread Stephen Hemminger
On Wed, 30 Aug 2017 00:16:18 +0530 Pavan Nikhilesh wrote: > +static inline uint64_t > +mullhi_u64(uint64_t x, uint64_t y) > { > - uint32_t t = (uint32_t)(((uint64_t)a * R.m) >> 32); > + __uint128_t xl = x; > + __uint128_t yl = y; > + __uint128_t rl = xl * yl; > + return (uint

Re: [dpdk-dev] [PATCH 2/2] eal: add u64 bit variant for reciprocal

2017-08-29 Thread Stephen Hemminger
On Wed, 30 Aug 2017 00:16:18 +0530 Pavan Nikhilesh wrote: > +/* > + * libdivide > + * Copyright (C) 2010 ridiculous_fish > + * This software is provided 'as-is', without any express or implied > + * warranty. In no event will the authors be held liable for any damages > + * arising from the use

[dpdk-dev] [PATCH 2/2] eal: add u64 bit variant for reciprocal

2017-08-29 Thread Pavan Nikhilesh
Currently, rte_reciprocal only supports unsigned 32bit divisors. This commit adds support for unsigned 64bit divisors. Rename unsigned 32bit specific functions appropriately and update librte_sched accordingly. Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/bsdapp/eal/rte_eal_version.map |