[dpdk-dev] [PATCH 1/7] Fix rte_is_power_of_2

2014-12-25 Thread Neil Horman
On Thu, Dec 25, 2014 at 10:33:11AM -0500, Ravi Kerur wrote: > rte_is_power_of_2 returns true for 0 and 0 is not power_of_2. Fix > by checking for n. > > Signed-off-by: Ravi Kerur > --- > lib/librte_eal/common/include/rte_common.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[dpdk-dev] [PATCH 1/7] Fix rte_is_power_of_2

2014-12-25 Thread Ravi Kerur
Sure, will post it separately. Thanks. On Thu, Dec 25, 2014 at 9:21 AM, Neil Horman wrote: > On Thu, Dec 25, 2014 at 10:33:11AM -0500, Ravi Kerur wrote: > > rte_is_power_of_2 returns true for 0 and 0 is not power_of_2. Fix > > by checking for n. > > > > Signed-off-by: Ravi Kerur > > --- > > l

[dpdk-dev] [PATCH 1/7] Fix rte_is_power_of_2

2014-12-25 Thread Ravi Kerur
rte_is_power_of_2 returns true for 0 and 0 is not power_of_2. Fix by checking for n. Signed-off-by: Ravi Kerur --- lib/librte_eal/common/include/rte_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/in