Re: [dpdk-dev] [PATCH v7 04/12] net/ether: use bitops to speedup comparison

2019-07-05 Thread Olivier Matz
On Tue, Jul 02, 2019 at 03:12:39PM -0700, Stephen Hemminger wrote: > Using bit operations like or and xor is faster than a loop > on all architectures. Really just explicit unrolling. > > Similar cast to uint16 unaligned is already done in > other functions here. > > Signed-off-by: Stephen Hemmin

[dpdk-dev] [PATCH v7 04/12] net/ether: use bitops to speedup comparison

2019-07-02 Thread Stephen Hemminger
Using bit operations like or and xor is faster than a loop on all architectures. Really just explicit unrolling. Similar cast to uint16 unaligned is already done in other functions here. Signed-off-by: Stephen Hemminger Reviewed-by: Andrew Rybchenko --- lib/librte_net/rte_ether.h | 17 +++-