eal: make u64 reciprocal divisor const

The divisor is not modified here. Doesn't really matter for optimizaton
since the function is inline already; but helps with expressing
intent.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
Stephen Hemminger 2019-03-21 12:59:10 -07:00 committed by Thomas Monjalon
parent 196c650b8b
commit 6d96b48af8

View File

@ -77,7 +77,7 @@ mullhi_u64(uint64_t x, uint64_t y)
}
static __rte_always_inline uint64_t
rte_reciprocal_divide_u64(uint64_t a, struct rte_reciprocal_u64 *R)
rte_reciprocal_divide_u64(uint64_t a, const struct rte_reciprocal_u64 *R)
{
uint64_t t = mullhi_u64(a, R->m);