Re: [dpdk-dev] [PATCH v3 4/6] net/ether: use bitops to speedup comparison

2019-06-05 Thread Andrew Rybchenko
On 6/5/19 4:08 AM, 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 Hemminger Reviewed-by: Andrew Rybchenk

[dpdk-dev] [PATCH v3 4/6] net/ether: use bitops to speedup comparison

2019-06-04 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 --- lib/librte_net/rte_ether.h | 17 +++-- 1 file changed, 7 in