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 F1F7EA00C2; Wed, 23 Nov 2022 23:14:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B46542DA3; Wed, 23 Nov 2022 23:14:52 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 0694340E5A for ; Wed, 23 Nov 2022 23:14:50 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4A69820B83C2; Wed, 23 Nov 2022 14:14:50 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4A69820B83C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669241690; bh=JNPBMUkfhatfIZv1PNWP1hYGlYwcW5v149vWyRa21IE=; h=From:To:Cc:Subject:Date:From; b=axnlSkdUhpcFZvgD/9jrnotABlILi0dQ++OkuO79sJj5lNn0uXXIqYwvLGkTHlrFi EE6QFRtk+Lg2hZQXqybKnz1Eb8KkvzO4YK5BXa1ZUEg3n7H3jZFyLAh7f1y2KXl2lE 6+LHpmX9ITyHQNlTDF7NWh+7lxSoi9asE8OggLNw= From: Tyler Retzlaff To: dev@dpdk.org Cc: Tyler Retzlaff Subject: [PATCH 0/2] eal: provide leading and trailing zero bit count Date: Wed, 23 Nov 2022 14:14:45 -0800 Message-Id: <1669241687-18810-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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. 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 | 257 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 352 insertions(+) create mode 100644 app/test/test_bitcount.c create mode 100644 lib/eal/include/rte_bitcount.h -- 1.8.3.1