[dpdk-dev] [PATCH v7 04/12] net/ether: use bitops to speedup comparison
Olivier Matz
olivier.matz at 6wind.com
Fri Jul 5 16:34:48 CEST 2019
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 Hemminger <stephen at networkplumber.org>
> Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list