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 D3D0B43267; Thu, 2 Nov 2023 02:05:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EFAF42DCD; Thu, 2 Nov 2023 02:05:37 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id EAD364027D for ; Thu, 2 Nov 2023 02:05:34 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 378DB20B74C2; Wed, 1 Nov 2023 18:05:34 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 378DB20B74C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1698887134; bh=IMQnlYfUF1j7V+03S0MTjLICYCoypIPt0TvJwAmDgPY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q6lslEZBZYIIERUpgTAU7boRkeNU0srbkikcib3UvZsVYGImmP8EbWPcutq+E8jhj s8vYdkn00YuJ3ymKEGxER1r5x8CpVzKfvTpZmZHKqF9FyBaJP/l0BLjbav2/fGlalk 9o6wNNJXKcCkM6Qlrw0vTBZhVTMfmbsO9CMaddG0= 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 Subject: [PATCH 2/5] distributor: use abstracted bit count functions Date: Wed, 1 Nov 2023 18:05:29 -0700 Message-Id: <1698887132-5347-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1698887132-5347-1-git-send-email-roretzla@linux.microsoft.com> References: <1698887132-5347-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_ctz64 instead of __builtin_ctzl Fixes: 18898c4d06f9 ("eal: use abstracted bit count functions") 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 ad43c13..08144e5 100644 --- a/lib/distributor/rte_distributor_single.c +++ b/lib/distributor/rte_distributor_single.c @@ -252,7 +252,7 @@ struct rte_mbuf * if (match) { next_mb = NULL; - unsigned worker = __builtin_ctzl(match); + unsigned worker = rte_ctz64(match); if (add_to_backlog(&d->backlog[worker], next_value) < 0) next_idx--; -- 1.8.3.1