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:
parent
196c650b8b
commit
6d96b48af8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user