[dpdk-dev] [PATCH] Small fixes in rte_common.h
r k
rkerur at gmail.com
Tue Dec 9 22:05:15 CET 2014
Subject: [PATCH] Small fixes in rte_common.h
Fix a bug in power_of_2 since zero is not.
Avoid branching in RTE_MIN and RTE_MAX macros.
Ravi Kerur (1):
Fix power_of_2 macro.
Avoid branching when calculating RTE_MIN and RTE_MAX.
lib/librte_eal/common/include/rte_common.h | 6 +++---
lib/librte_pmd_e1000/igb_pf.c | 4 ++--
lib/librte_pmd_ixgbe/ixgbe_pf.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
--
1.9.1
More information about the dev
mailing list