eal: introduce macro for bit definition
authorParav Pandit <parav@mellanox.com>
Mon, 27 Jul 2020 17:47:06 +0000 (20:47 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 28 Jul 2020 16:27:46 +0000 (18:27 +0200)
commit21587b49210248e58add1fb6851538413c321de7
tree9ef74b063f59e567f6ae0a25f4173c2f48f3e867
parentec0b862d5e52db12932c3125d06081307aea6af4
eal: introduce macro for bit definition

There are several drivers which duplicate bit generation macro.
Introduce a generic bit macros so that such drivers avoid redefining
same in multiple drivers.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
lib/librte_eal/include/rte_bitops.h