From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59787A0093; Mon, 28 Nov 2022 18:13:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3841F4067E; Mon, 28 Nov 2022 18:13:35 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9250D40150 for ; Mon, 28 Nov 2022 18:13:33 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id B14D820B717A; Mon, 28 Nov 2022 09:13:32 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B14D820B717A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669655612; bh=N7xtnopGIQBSq9AXDxQ4oorK8uePQONg99PGzDpZjr0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ipgU7QfOcqOfHEzGzMBmwrndQZf38unGGUVpAzBYZ8fdHWBSj3OzuVySgx5pdaYsm 7Znr3EUW8bBCt/PZlyCWAJAzNAlm/gQ+Y4Uk3YKXwBWyMOAdl1HOG/PUq5n3TovHuk zK1mg4030iT5l702itn+0h7bqf7C21tOQf3cDVZ0= Date: Mon, 28 Nov 2022 09:13:32 -0800 From: Tyler Retzlaff To: Morten =?iso-8859-1?Q?Br=F8rup?= Cc: dev@dpdk.org Subject: Re: [PATCH v2 1/2] eal: provide leading and trailing zero bit count abstraction Message-ID: <20221128171332.GA28869@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1669241687-18810-1-git-send-email-roretzla@linux.microsoft.com> <1669246997-30592-1-git-send-email-roretzla@linux.microsoft.com> <1669246997-30592-2-git-send-email-roretzla@linux.microsoft.com> <98CBD80474FA8B44BF855DF32C47DC35D874F9@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D874F9@smartserver.smartshare.dk> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Nov 24, 2022 at 11:17:23AM +0100, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roretzla@linux.microsoft.com] > > Sent: Thursday, 24 November 2022 00.43 > > > > Provide an abstraction for leading and trailing zero bit counting > > functions to hide compiler specific intrinsics and builtins. > > > > Signed-off-by: Tyler Retzlaff > > --- > let me unpack what is being asked for here. > Related functions already exist in lib/eal/include/rte_common.h. i don't understand. are you saying these inline functions duplicate existing bit counting functionality? if so i'll relocate any you identify. > > If some functions are missing, it would be good to add them. the change here is to address a specific family of functions that are impeding portability of the rte_common.h header and nothing more. i'm open to having a separate mail thread discussing what other functions we might want and whether to relocate code out of rte_common.h since that is likely to be a drawn out discussion it shouldn't be a blocking dependency of this series. > > Also, it makes sense moving them out of rte_common.h. thanks!