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

2017-09-05 Thread Pavan Nikhilesh Bhagavatula
On Tue, Sep 05, 2017 at 10:29:01AM -0700, Stephen Hemminger wrote: > On Tue, 5 Sep 2017 16:18:51 +0530 > Pavan Nikhilesh wrote: > > > +/** > > + * Unsigned 32-bit divisor structure. > > + */ > > +struct rte_reciprocal_u32 { > > uint32_t m; > > uint8_t sh1, sh2; > > -}; > > +} __rte_cache_

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

2017-09-05 Thread Stephen Hemminger
On Tue, 5 Sep 2017 16:18:51 +0530 Pavan Nikhilesh wrote: > +/** > + * Unsigned 32-bit divisor structure. > + */ > +struct rte_reciprocal_u32 { > uint32_t m; > uint8_t sh1, sh2; > -}; > +} __rte_cache_aligned; > + > +/** > + * Unsigned 64-bit divisor structure. > + */ > +struct rte_re