From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH] rte_reciprocal: make arg to rte_reciprocal_divide_u64 const Date: Thu, 21 Mar 2019 12:59:10 -0700 Message-ID: <20190321195910.11140-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 9D7111B6A1 for ; Thu, 21 Mar 2019 20:59:14 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id a3so4965327pff.11 for ; Thu, 21 Mar 2019 12:59:14 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- lib/librte_eal/common/include/rte_reciprocal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_reciprocal.h b/lib/librte_eal/common/include/rte_reciprocal.h index 3492c73bafea..63e16fde0aa8 100644 --- a/lib/librte_eal/common/include/rte_reciprocal.h +++ b/lib/librte_eal/common/include/rte_reciprocal.h @@ -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); -- 2.17.1