[dpdk-dev] [PATCH] common: introduce an integer log2 function

Thomas Monjalon thomas at monjalon.net
Mon Jul 3 10:48:51 CEST 2017


06/04/2017 16:15, Olivier Matz:
> At some places, the log2() function is used despite this function
> works on float. This introduces a dependency to the math lib but
> most of the time it is not required because we want an integer log2.
> 
> Add a new helper to do this job and fix 2 drivers.

Only nfp driver is fixed.

> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>

Acked-by: Alejandro Lucero <alejandro.lucero at netronome.com>

Applied, thanks


More information about the dev mailing list