eal: add 64-bit log2 function
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 20 Dec 2018 12:09:50 +0000 (12:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 23:23:49 +0000 (00:23 +0100)
commit9d65053761ae20e81e651ac0f0a76649e142e8e5
tree9d503265c0e4b10457ecd0795630087cb6d6e77e
parent43c9e6c205ab491779c67bba5be3ff8c3f45998e
eal: add 64-bit log2 function

Add missing implementation for 64-bit log2 function, and extend
the unit test to test this new function. Also, remove duplicate
reimplementation of this function from testpmd and memalloc.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
app/test-pmd/testpmd.c
lib/librte_eal/common/include/rte_common.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c
test/test/test_common.c