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 BEE32432CC; Wed, 8 Nov 2023 00:38:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9066442DAC; Wed, 8 Nov 2023 00:38:30 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 314754026D for ; Wed, 8 Nov 2023 00:38:23 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 0C49620B74C6; Tue, 7 Nov 2023 15:38:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0C49620B74C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1699400302; bh=AmqIsTs5cM3FAUTzPPVIkrmOdtm4gZtgysow80ychoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gyoMHjgZsDZJlh4SPYB/OuBnqonaoSneR7Q97LoohMJ/kWjcuBN4iExg18tq9vZ8T B7rv/qeAWpc6m6lGWSqHz4CpPaT6A6qVFQH737bL8fPafPyb2/vutiMlIC/I+QB3xJ 8R/CxjYWqXGNXfGjRtro8xqiGUz8GZ1/EXI59hzk= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Cristian Dumitrescu , David Hunt , Honnappa Nagarahalli , Ruifeng Wang , Sameh Gobriel , Tyler Retzlaff , Vladimir Medvedkin , Yipeng Wang , mb@smartsharesystems.com Subject: [PATCH v3 6/7] distributor: use abstracted bit count functions Date: Tue, 7 Nov 2023 15:38:19 -0800 Message-Id: <1699400300-22545-7-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1699400300-22545-1-git-send-email-roretzla@linux.microsoft.com> References: <1698887132-5347-1-git-send-email-roretzla@linux.microsoft.com> <1699400300-22545-1-git-send-email-roretzla@linux.microsoft.com> 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 Use rte_popcount64 instead of __builtin_popcountl where the argument type passed to the intrinsic was 64-bits. Signed-off-by: Tyler Retzlaff --- lib/distributor/rte_distributor_single.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/distributor/rte_distributor_single.c b/lib/distributor/rte_distributor_single.c index 08144e5..84d88e3 100644 --- a/lib/distributor/rte_distributor_single.c +++ b/lib/distributor/rte_distributor_single.c @@ -341,7 +341,7 @@ struct rte_mbuf * { unsigned wkr, total_outstanding; - total_outstanding = __builtin_popcountl(d->in_flight_bitmask); + total_outstanding = rte_popcount64(d->in_flight_bitmask); for (wkr = 0; wkr < d->num_workers; wkr++) total_outstanding += d->backlog[wkr].count; -- 1.8.3.1