Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132613/?format=api
https://patches.dpdk.org/api/patches/132613/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1697419762-13259-1-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1697419762-13259-1-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1697419762-13259-1-git-send-email-roretzla@linux.microsoft.com", "date": "2023-10-16T01:29:22", "name": "eal: use abstracted bit count functions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "20111d0bc6dbaf4966beafad3e54d631d8bc5b88", "submitter": { "id": 2077, "url": "https://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1697419762-13259-1-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 29841, "url": "https://patches.dpdk.org/api/series/29841/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29841", "date": "2023-10-16T01:29:22", "name": "eal: use abstracted bit count functions", "version": 1, "mbox": "https://patches.dpdk.org/series/29841/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/132613/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/132613/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E39EB43176;\n\tMon, 16 Oct 2023 03:29:25 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 69F1B40299;\n\tMon, 16 Oct 2023 03:29:25 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 63D4640269\n for <dev@dpdk.org>; Mon, 16 Oct 2023 03:29:24 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id A874320B74C0; Sun, 15 Oct 2023 18:29:23 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com A874320B74C0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1697419763;\n bh=WLDURQQ3hGTwC1Pso7yM1ZkfxzCKJxar7ok0xvNBjYA=;\n h=From:To:Cc:Subject:Date:From;\n b=esFuoJakDKnmfYTpWSiEiO+HRW7IRYqhQbRt/+30XSKS4VmZEHVVPbIqXzkU3ubfB\n WbE4R2vG1TBYqZADESxxRO18OIVm99e/zvYjYm0U0TkfFSQS6h/hGeBNCiGQQF7SeF\n Qw1G3Z7KrRx2PAS2Fii0/zCbEGOaSfzMtx8wvldg=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "david.marchand@redhat.com, Joyce Kong <joyce.kong@arm.com>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH] eal: use abstracted bit count functions", "Date": "Sun, 15 Oct 2023 18:29:22 -0700", "Message-Id": "<1697419762-13259-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 <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Use DPDK abstracted bitcount functions in rte_bsf and rte_fls inline\nfunctions.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/rte_bitops.h | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex d45aa54..6b8ae8d 100644\n--- a/lib/eal/include/rte_bitops.h\n+++ b/lib/eal/include/rte_bitops.h\n@@ -574,7 +574,7 @@\n static inline uint32_t\n rte_bsf32(uint32_t v)\n {\n-\treturn (uint32_t)__builtin_ctz(v);\n+\treturn (uint32_t)rte_ctz32(v);\n }\n \n /**\n@@ -615,7 +615,7 @@\n static inline uint32_t\n rte_bsf64(uint64_t v)\n {\n-\treturn (uint32_t)__builtin_ctzll(v);\n+\treturn (uint32_t)rte_ctz64(v);\n }\n \n /**\n@@ -656,7 +656,7 @@\n static inline uint32_t\n rte_fls_u32(uint32_t x)\n {\n-\treturn (x == 0) ? 0 : 32 - __builtin_clz(x);\n+\treturn (x == 0) ? 0 : 32 - rte_clz32(x);\n }\n \n /**\n@@ -674,7 +674,7 @@\n static inline uint32_t\n rte_fls_u64(uint64_t x)\n {\n-\treturn (x == 0) ? 0 : 64 - __builtin_clzll(x);\n+\treturn (x == 0) ? 0 : 64 - rte_clz64(x);\n }\n \n /*********** Macros to work with powers of 2 ********/\n", "prefixes": [] }{ "id": 132613, "url": "