eal: introduce rte version of fls
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 7 Nov 2018 06:59:03 +0000 (06:59 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 12 Nov 2018 12:25:01 +0000 (13:25 +0100)
commit3a6f2c50b9dc27a958af87d7ca9533b51a36477b
treede9a4fd87f9dfb01737cb05c3ccc047ecb1692eb
parentfac66b12954d5e00419056a59861ba299fe2c9b6
eal: introduce rte version of fls

The function returns the last (most-significant) bit set.
Added unit testcase to verify rte_fls_u32().

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/common/include/rte_common.h
test/test/test_common.c