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 18D8D432CC; Wed, 8 Nov 2023 00:38:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9E6B42D76; Wed, 8 Nov 2023 00:38:25 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 94B4240689 for ; Wed, 8 Nov 2023 00:38:22 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id BA7E820B74C1; Tue, 7 Nov 2023 15:38:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BA7E820B74C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1699400301; bh=b9vPWAPxatAB2C2eslSLiTdJANCajBnB3l4tPn3nQS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jQ+l/oPIAzvrTLVWCXAsFBP0ILuJg5fQq0a9/8BXO64Fn25EJCOpVqSPzW++kqlxt +rwLiTwSqYhgtOX4+MTWSptyLUD0x35mK73gOqMipw79hmu7/k2xwl+DYBpzgkGHHR sqGRB1MG6CyL/duK/tnokFoKo3w/Ghp8lDB/nuts= 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 1/7] distributor: use abstracted bit count functions Date: Tue, 7 Nov 2023 15:38:14 -0800 Message-Id: <1699400300-22545-2-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_ctz32 or rte_ctz64 respectively instead of __builtin_ctzl depending on the resultant type of the expression passed as an argument 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