eal: fix parentheses in alignment macros
authorHarman Kalra <hkalra@marvell.com>
Wed, 24 Jun 2020 10:20:47 +0000 (15:50 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 11 Jul 2020 09:41:33 +0000 (11:41 +0200)
commit3596a037ab44a1ad588fb388d5d4ee8f3d2a1ca7
tree8bbcabf8aed5e917092ff16f58dfdc3d32aa8c65
parent0b459fa02a8d9e721ca6909f7183b9826b14bbda
eal: fix parentheses in alignment macros

Found an issue while using RTE_ALIGN_MUL_NEAR with an
expression, like as passed in estimate_tsc_freq().
RTE_ALIGN_MUL_FLOOR resulted in unexpected value as
parathesis are required to evaluate an expression.

Fixes: 5120203d753f ("eal: add macros to align value to multiple")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
lib/librte_eal/include/rte_common.h