eal: new common macros added
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 11 Feb 2014 10:08:43 +0000 (10:08 +0000)
committerDavid Marchand <david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:18 +0000 (21:29 +0100)
commita3fd610463291df1ce7dfdea60d74d8f9742dc13
tree93ec865352c82716d39aebc367f385ec918d5ba4
parent6f5f8ecce1b2d11abb758fe9a89f7a39a32cd6e9
eal: new common macros added

Added the following new macros/inline functions, which are both
generally useful and needed for later functionality:
* rte_align64pow2: aligns a 64bit parameter to next power of 2
* RTE_LEN2MASK: create mask of type <tp> with the first <ln> bits
* RTE_DIM: return the number of elements in an array.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/include/rte_common.h