eal: add macro to align value to the nearest multiple
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 16 Mar 2019 19:01:50 +0000 (19:01 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Mar 2019 23:45:00 +0000 (00:45 +0100)
commitf56e551485d5461e5dab76b2c47164bbf646a445
treeaa02b78f2557f5c094df0c55ba98ea6bd67bbf9f
parent55878866eb2b6d4e00ff5624259a92f13e10b481
eal: add macro to align value to the nearest multiple

Add macro to align value to the nearest multiple of the given value,
resultant value might be greater than or less than the first parameter
whichever difference is the lowest.
Update unit test to include the new macro.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
app/test/test_common.c
lib/librte_eal/common/include/rte_common.h