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 57A84A00C2; Thu, 24 Nov 2022 00:43:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E640410DC; Thu, 24 Nov 2022 00:43:21 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 3113340042 for ; Thu, 24 Nov 2022 00:43:20 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7C28C20B6C40; Wed, 23 Nov 2022 15:43:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7C28C20B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669246999; bh=xQiVBE8PSfeKmEbpCnqiz2ehqsIX9bsEvVMSahHZQnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XqLS0sgNENB/B+8dgPIUlAWj2Cm3F0+zUHVNj9THHGjYlPHFXwikUTbvxesHPTJvI Czv60u5HC3H/1f4gQudoEuwNeqy3HDOOa5NYD7IiyiZLnVLXNX1+lrnGKpYiPYTuza kSzhV/s/6gLlrb2azi9lc5mkcoku4bBuH/eRq1ZY= From: Tyler Retzlaff To: dev@dpdk.org Cc: Tyler Retzlaff Subject: [PATCH v2 0/2] eal: provide leading and trailing zero bit count Date: Wed, 23 Nov 2022 15:43:15 -0800 Message-Id: <1669246997-30592-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1669241687-18810-1-git-send-email-roretzla@linux.microsoft.com> References: <1669241687-18810-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 Provide leading and trailing zero bit count functions to abstract away compiler specific implementations. Include basic unit test for new leading/trailing zero bit count functions. v2: * use unsigned int instead of unsigned (checkpatches) * match multiple include guard naming convention to rte_common.h * add explicit extern "C" linkage to rte_bitcount.h note: not really needed but checkpatches required * add missing space around '-' Tyler Retzlaff (2): eal: provide leading and trailing zero bit count abstraction test/bitcount: add bitcount tests app/test/meson.build | 2 + app/test/test_bitcount.c | 92 ++++++++++++++ lib/eal/include/meson.build | 1 + lib/eal/include/rte_bitcount.h | 265 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 360 insertions(+) create mode 100644 app/test/test_bitcount.c create mode 100644 lib/eal/include/rte_bitcount.h -- 1.8.3.1