From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] common/cpt: fix bad shift operation Date: Sun, 18 Nov 2018 17:36:50 +0100 Message-ID: <1670873.f7ehEq6XVY@xps> References: <1542258584-5779-1-git-send-email-anoob.joseph@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Akhil Goyal , Pablo de Lara , "Jacob, Jerin" , "Athreya, Narayana Prasad" , "Joseph, Anoob" To: Anoob Joseph , "Dwivedi, Ankur" Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 4E8374F9B for ; Sun, 18 Nov 2018 17:36:53 +0100 (CET) In-Reply-To: <1542258584-5779-1-git-send-email-anoob.joseph@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 15/11/2018 06:10, Anoob Joseph: > From: Ankur Dwivedi > > Coverity Issue: 323477 > > Using the rte_bsf32 function to find last set bit. This avoids > the for loop and hence the bad bit shift operation. > > Fixes: 351fbee21986 ("common/cpt: support hash") > > Signed-off-by: Ankur Dwivedi > Signed-off-by: Anoob Joseph Applied, thanks