From patchwork Tue Nov 7 19:10:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 370 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 805AC432CA; Tue, 7 Nov 2023 20:10:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C859402D4; Tue, 7 Nov 2023 20:10:10 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E846C402CF for ; Tue, 7 Nov 2023 20:10:07 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4847A20B74C0; Tue, 7 Nov 2023 11:10:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4847A20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1699384207; bh=/15K1GJXwUKMpC8ELYD9Q1FujHoOAZzgkBDEmhgApJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J/E+/7AycuUgXwG1ZGAxf0uXh4zoiDal9XJJs9F/wXpru9jf30EQb+3t33ehtof9y kVSnRxOyCKXGyF+bF8O2vUdIuVm6U6PGolvkZcERSo651FTIVXhDGyPE3cMWu+TRVG dNEUsLd91FArUSQZWWtVM8iKcr+DCgMUL2/qC3Pc= 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 v2 0/5] use abstracted bit count functions Date: Tue, 7 Nov 2023 11:10:00 -0800 Message-Id: <1699384205-12999-1-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 The first set of conversions missed the long 'l' versions of the builtins that were being used. This series completes the conversion of remaining libraries from __builtin_ctzl and __builtin_clzl. v2: be explicit and use appropriate 32-bit and 64-bit leading and trailing counting functions depending on the type of the expression passed as an argument to the builtin. Tyler Retzlaff (5): distributor: use abstracted bit count functions hash: use abstracted bit count functions member: use abstracted bit count functions rcu: use abstracted bit count functions table: use abstracted bit count functions lib/distributor/rte_distributor_single.c | 2 +- lib/hash/rte_cuckoo_hash.c | 16 ++++++++-------- lib/member/rte_member_vbf.c | 12 ++++++------ lib/member/rte_member_x86.h | 6 +++--- lib/rcu/rte_rcu_qsbr.c | 4 ++-- lib/rcu/rte_rcu_qsbr.h | 2 +- lib/table/rte_lru_arm64.h | 2 +- lib/table/rte_swx_table_em.c | 4 ++-- lib/table/rte_table_hash_ext.c | 4 ++-- lib/table/rte_table_hash_lru.c | 4 ++-- 10 files changed, 28 insertions(+), 28 deletions(-)