get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/139676/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 139676,
    "url": "http://patchwork.dpdk.org/api/patches/139676/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240425085853.97888-2-mattias.ronnblom@ericsson.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20240425085853.97888-2-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240425085853.97888-2-mattias.ronnblom@ericsson.com",
    "date": "2024-04-25T08:58:48",
    "name": "[RFC,v2,1/6] eal: extend bit manipulation functionality",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "e9e99efbe66b38c70582f367466bd5cae885b3d1",
    "submitter": {
        "id": 1077,
        "url": "http://patchwork.dpdk.org/api/people/1077/?format=api",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240425085853.97888-2-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 31818,
            "url": "http://patchwork.dpdk.org/api/series/31818/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31818",
            "date": "2024-04-25T08:58:47",
            "name": "Improve EAL bit operations API",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/31818/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/139676/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/139676/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 3A98843F04;\n\tThu, 25 Apr 2024 11:10:29 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C951E436D7;\n\tThu, 25 Apr 2024 11:10:06 +0200 (CEST)",
            "from EUR01-VE1-obe.outbound.protection.outlook.com\n (mail-ve1eur01on2053.outbound.protection.outlook.com [40.107.14.53])\n by mails.dpdk.org (Postfix) with ESMTP id 14E2B436CA\n for <dev@dpdk.org>; Thu, 25 Apr 2024 11:10:02 +0200 (CEST)",
            "from AM7PR02CA0011.eurprd02.prod.outlook.com (2603:10a6:20b:100::21)\n by AM8PR07MB8041.eurprd07.prod.outlook.com (2603:10a6:20b:3d8::19)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Thu, 25 Apr\n 2024 09:09:57 +0000",
            "from AM3PEPF0000A793.eurprd04.prod.outlook.com\n (2603:10a6:20b:100:cafe::26) by AM7PR02CA0011.outlook.office365.com\n (2603:10a6:20b:100::21) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.29 via Frontend\n Transport; Thu, 25 Apr 2024 09:09:57 +0000",
            "from oa.msg.ericsson.com (192.176.1.74) by\n AM3PEPF0000A793.mail.protection.outlook.com (10.167.16.122) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.7519.19 via Frontend Transport; Thu, 25 Apr 2024 09:09:57 +0000",
            "from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by\n smtp-central.internal.ericsson.com (100.87.178.61) with Microsoft SMTP Server\n id 15.2.1258.12; Thu, 25 Apr 2024 11:09:55 +0200",
            "from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100])\n by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id\n A8FA41C006A; Thu, 25 Apr 2024 11:09:55 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=fb3Ia1NEds0aUZtpL4CecTfidWrMGAqc0qF1XF6HwsnDWS9vK+Ns3juIAtXOabLX40Vdo8Hu+zS2lytTSEVWMPvR49crDdQArh1NTv7oBFWj/InkS3Ycitz0f5cXB9+h5BQUZ9/rMwlsR9Vjpf1ORd3IhLGi00yTyjq2uXqNsbyxVFC0F7reJ+fVj/lVlaI/cORHrpMeeWR9kz0DbOtSCWMcJpV8k1859oQ30bHu1MxNFeIJ6qyxtoQ7o21z1trtJu8m4PLMVbxVzEXhFiPqU8phDhsl+ag9HWv2J83jz+gDwdzX5kF/Vj9wLigNITjo66SCLBn+8Nqjg0+pg+CaEw==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=MkX7rlJaLUWKCpLft5kVGlkg8JQFoluRS01LeOWajQQ=;\n b=nglyaNIXDY+1vrLlkQMCDngPRRcxqYGjJ/zvgYo/TKrHwCdoBGQ5JAmOJ51wDohm4LuRYKy9CsDh2fEy0NyVh15WIT9eC8x1xKQ8jFYTrih44NYyBT1Ibwh/5LzJe4gZ3NVnYYxQwew7gQrww7qci+OJGQBXInsbKNpU++N9HsVZSCwtnCbZaB9U9V5QSa1rFtTwiSh65DOgYzDnaD821aWnla9qxxb+8izIJ9WQpHHXOJuMSGJ4rjtc/rAbHWGY7Z4WScKL14jKmySE32KCcCIPnDUp6vWhQtEdDT1+YxOjHoV9EcaeKmldOlb8ucCxbUQFzSKs2bz+Y03WKXWZ2A==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 192.176.1.74) smtp.rcpttodomain=dpdk.org smtp.mailfrom=ericsson.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=MkX7rlJaLUWKCpLft5kVGlkg8JQFoluRS01LeOWajQQ=;\n b=cQDmYLzSS/FbKBCQBj46gkThQJwY9y53wL8FeFze1gMShhzq7tqfibbzeF6euXXaPe4YyWCFeatngS6Y1iyAcYGgR2HmKVERcfgb8EbyQOF+SW/QzNJEikVsk7klkHj5CkwdbFxf0t/Dh/zkU5PIOIa3klLh465M0LzakioCk4dWa5Q9CAyPpqfAN2ysN5TqSjzEAg2oI5jGiGWTXSJa9E8qHAK5qwkh5pDMnVW1CwVayie9ibseJapKSiwDneKP4ajc8zF2h17EMgpIu1ODUIIK8EqDk0ff+amXWLrNU+hXxZQDP6h4NPbC11Sec4lRZDFDVS5kK+eWgaryo2A7yA==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 192.176.1.74)\n smtp.mailfrom=ericsson.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=ericsson.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of ericsson.com designates\n 192.176.1.74 as permitted sender)\n receiver=protection.outlook.com;\n client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<hofors@lysator.liu.se>, Heng Wang <heng.wang@ericsson.com>,\n \"Stephen Hemminger\" <stephen@networkplumber.org>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>, =?utf-8?q?Mattias_R=C3=B6nnb?=\n\t=?utf-8?q?lom?= <mattias.ronnblom@ericsson.com>",
        "Subject": "[RFC v2 1/6] eal: extend bit manipulation functionality",
        "Date": "Thu, 25 Apr 2024 10:58:48 +0200",
        "Message-ID": "<20240425085853.97888-2-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240425085853.97888-1-mattias.ronnblom@ericsson.com>",
        "References": "<20240302135328.531940-2-mattias.ronnblom@ericsson.com>\n <20240425085853.97888-1-mattias.ronnblom@ericsson.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "AM3PEPF0000A793:EE_|AM8PR07MB8041:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "748ad0e0-6a8f-4c10-8c36-08dc65077a8c",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230031|376005|36860700004|1800799015|82310400014;",
        "X-Microsoft-Antispam-Message-Info": "=?utf-8?q?PfLu+INMSSy8XL5V4LOxvz9uLVhtMrc?=\n\t=?utf-8?q?dDREtVGeTit2FJa7VmMvCSybj4aJDOWni7Jh1uDZYYwGP5MoQxAuRdTwjasQVdSpD?=\n\t=?utf-8?q?Kzyn/h8TH+HCiFCd6a7seTPBVz/l8zP96UsPGIoi5E/2Dp25lgtAHnCR9mZ9uxTmd?=\n\t=?utf-8?q?A09TrzbXCLkgDCPJGLrl3ljRMYb7AR4fS+vxNUYLctZmoiYMMsrVUnFdp4rsX3h0v?=\n\t=?utf-8?q?4y4f/epoNLk8QoKyLEsschaYTVVKS5Rz6mVokiWU96GHKBCFjgoYsoRnQisaCOFXA?=\n\t=?utf-8?q?UoAck8sQn8yfwqIgudsbjlxlNRVWym692tWVOgC/WJlaVlDzjymE1EC3+A8i7Awf8?=\n\t=?utf-8?q?yUDnCvNNMLctBHZtuW9bxiuJSGt8JRHI7pLSC+JyvuQFWlht7DUFo4+FZwjH1a6CV?=\n\t=?utf-8?q?nnpzI7mITDfkjROZCQyc6ZTu/4lcnpHELVqsz+3ROj2KCtFbqDL9tROoclZdbyHhz?=\n\t=?utf-8?q?bJFbLqYiMs2omWR3tPkUF0iknwKnvVrY2S327jvqkbTzcFacfONxAtThVlCBb4iKz?=\n\t=?utf-8?q?xcCXCSRm73PezugTjETqmqfub6nwSX9qm2DXmTYXvpryXmCdQ6dDrpiTFbWtb7Q+a?=\n\t=?utf-8?q?+vHRR60TmwhN9ZVQtOUXanPgaks+hnqDy+bZ/hUwNtPiGgcxIEPl84c0IioKiyfm0?=\n\t=?utf-8?q?IpstNXwaAuE+ZBWXcw1gv52LjM9Z9XeTsIOzUycl6ci+oimN09wA6zFhFUS31tQ2/?=\n\t=?utf-8?q?0mj2qW5JARHQlqR9do/z0Q0Xb0l2g4vHJDQckHfh6H0QQAR/DAIF2IQCwrWsGx5wJ?=\n\t=?utf-8?q?kbZgD/6CrUyTKfEQG83tdfcFUb35pTPYDtZ2mMO2m/RvBqbvgG5hRBqUgtIGWl4l8?=\n\t=?utf-8?q?YHVONEF8/KTzBuyJ/horuYEG/k16xSoCxod1YZdPmeVh/1nluqdWU+gT8IgRSPfF9?=\n\t=?utf-8?q?IzJHRqshaM4uKOCCyO6Ee5xDBhtfwXGUI1yUMaLkBAyWboVx9G9bvx8pkeBIXW3HH?=\n\t=?utf-8?q?p/M4iBILJXrmbSpVUPNOluFByf0yLDJv0JrH6PLHk9lCrD7P2QjgpaAIUkd9K/OHS?=\n\t=?utf-8?q?4wG97H4HPbBW+qovc5G8OBGQxXBEEpATPnknRAJKhni9ZjHLS8v/6rg7e+BllshSK?=\n\t=?utf-8?q?y0z0ZTewnOKERCSHn0ktTZ+esDDbYQlmkqZnh3PDQQT9oOIRdxJ+pYOaGsFmMPtUW?=\n\t=?utf-8?q?dygRsD6n94m+DHWQs0blJ0N318XAHTXQUQkduOWH0f1KBtjtNnLdxDtqM/D1n7Du8?=\n\t=?utf-8?q?cP23SOPwKKdZWWND+Ib2WN/1HDOSvdJklDyRtqiDjeCkY0Y/No2xaP5NKwJNg6ia7?=\n\t=?utf-8?q?ngq+R09Zhukr2vRqoEjY95k3AB/qUYaR5sSp1Lapsb+lQ08nJkE+yJE2lIfX+qK9i?=\n\t=?utf-8?q?LscufQS4EaGD?=",
        "X-Forefront-Antispam-Report": "CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net;\n CAT:NONE; SFS:(13230031)(376005)(36860700004)(1800799015)(82310400014);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "ericsson.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "25 Apr 2024 09:09:57.4350 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 748ad0e0-6a8f-4c10-8c36-08dc65077a8c",
        "X-MS-Exchange-CrossTenant-Id": "92e84ceb-fbfd-47ab-be52-080c6b87953f",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74];\n Helo=[oa.msg.ericsson.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n AM3PEPF0000A793.eurprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM8PR07MB8041",
        "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": "Add functionality to test, set, clear, and assign the value to\nindividual bits in 32-bit or 64-bit words.\n\nThese functions have no implications on memory ordering, atomicity and\ndoes not use volatile and thus does not prevent any compiler\noptimizations.\n\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n lib/eal/include/rte_bitops.h | 158 ++++++++++++++++++++++++++++++++++-\n 1 file changed, 156 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex 449565eeae..75a29fdfe0 100644\n--- a/lib/eal/include/rte_bitops.h\n+++ b/lib/eal/include/rte_bitops.h\n@@ -2,6 +2,7 @@\n  * Copyright(c) 2020 Arm Limited\n  * Copyright(c) 2010-2019 Intel Corporation\n  * Copyright(c) 2023 Microsoft Corporation\n+ * Copyright(c) 2024 Ericsson AB\n  */\n \n #ifndef _RTE_BITOPS_H_\n@@ -11,12 +12,14 @@\n  * @file\n  * Bit Operations\n  *\n- * This file defines a family of APIs for bit operations\n- * without enforcing memory ordering.\n+ * This file provides functionality for low-level, single-word\n+ * arithmetic and bit-level operations, such as counting or\n+ * setting individual bits.\n  */\n \n #include <stdint.h>\n \n+#include <rte_compat.h>\n #include <rte_debug.h>\n \n #ifdef __cplusplus\n@@ -105,6 +108,157 @@ extern \"C\" {\n #define RTE_FIELD_GET64(mask, reg) \\\n \t\t((typeof(mask))(((reg) & (mask)) >> rte_ctz64(mask)))\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Test bit in word.\n+ *\n+ * Generic selection macro to test the value of a bit in a 32-bit or\n+ * 64-bit word. The type of operation depends on the type of the @c\n+ * addr parameter.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ */\n+#define rte_bit_test(addr, nr)\t\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_test32,\t\t\t\\\n+\t\t uint64_t *: __rte_bit_test64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Set bit in word.\n+ *\n+ * Generic selection macro to set a bit in a 32-bit or 64-bit\n+ * word. The type of operation depends on the type of the @c addr\n+ * parameter.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ */\n+#define rte_bit_set(addr, nr)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_set32,\t\t\\\n+\t\t uint64_t *: __rte_bit_set64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Clear bit in word.\n+ *\n+ * Generic selection macro to clear a bit in a 32-bit or 64-bit\n+ * word. The type of operation depends on the type of the @c addr\n+ * parameter.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ */\n+#define rte_bit_clear(addr, nr)\t\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_clear32,\t\t\t\\\n+\t\t uint64_t *: __rte_bit_clear64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Assign a value to a bit in word.\n+ *\n+ * Generic selection macro to assign a value to a bit in a 32-bit or 64-bit\n+ * word. The type of operation depends on the type of the @c addr parameter.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ * @param value\n+ *   The new value of the bit - true for '1', or false for '0'.\n+ */\n+#define rte_bit_assign(addr, nr, value)\t\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_assign32,\t\t\t\\\n+\t\t uint64_t *: __rte_bit_assign64)(addr, nr, value)\n+\n+#define __RTE_GEN_BIT_TEST(name, size, qualifier)\t\t\t\\\n+\tstatic inline bool\t\t\t\t\t\t\\\n+\tname(const qualifier uint ## size ## _t *addr, unsigned int nr)\t\\\n+\t{\t\t\t\t\t\t\t\t\\\n+\t\tRTE_ASSERT(nr < size);\t\t\t\t\t\\\n+\t\t\t\t\t\t\t\t\t\\\n+\t\tuint ## size ## _t mask = (uint ## size ## _t)1 << nr;\t\\\n+\t\treturn *addr & mask;\t\t\t\t\t\\\n+\t}\n+\n+#define __RTE_GEN_BIT_SET(name, size, qualifier)\t\t\t\\\n+\tstatic inline void\t\t\t\t\t\t\\\n+\tname(qualifier uint ## size ## _t *addr, unsigned int nr)\t\\\n+\t{\t\t\t\t\t\t\t\t\\\n+\t\tRTE_ASSERT(nr < size);\t\t\t\t\t\\\n+\t\t\t\t\t\t\t\t\t\\\n+\t\tuint ## size ## _t mask = (uint ## size ## _t)1 << nr;\t\\\n+\t\t*addr |= mask;\t\t\t\t\t\t\\\n+\t}\t\t\t\t\t\t\t\t\\\n+\n+#define __RTE_GEN_BIT_CLEAR(name, size, qualifier)\t\t\t\\\n+\tstatic inline void\t\t\t\t\t\t\\\n+\tname(qualifier uint ## size ## _t *addr, unsigned int nr)\t\\\n+\t{\t\t\t\t\t\t\t\t\\\n+\t\tRTE_ASSERT(nr < size);\t\t\t\t\t\\\n+\t\t\t\t\t\t\t\t\t\\\n+\t\tuint ## size ## _t mask = ~((uint ## size ## _t)1 << nr); \\\n+\t\t(*addr) &= mask;\t\t\t\t\t\\\n+\t}\t\t\t\t\t\t\t\t\\\n+\n+__RTE_GEN_BIT_TEST(__rte_bit_test32, 32,)\n+__RTE_GEN_BIT_SET(__rte_bit_set32, 32,)\n+__RTE_GEN_BIT_CLEAR(__rte_bit_clear32, 32,)\n+\n+__RTE_GEN_BIT_TEST(__rte_bit_test64, 64,)\n+__RTE_GEN_BIT_SET(__rte_bit_set64, 64,)\n+__RTE_GEN_BIT_CLEAR(__rte_bit_clear64, 64,)\n+\n+__rte_experimental\n+static inline void\n+__rte_bit_assign32(uint32_t *addr, unsigned int nr, bool value)\n+{\n+\tif (value)\n+\t\t__rte_bit_set32(addr, nr);\n+\telse\n+\t\t__rte_bit_clear32(addr, nr);\n+}\n+\n+__rte_experimental\n+static inline void\n+__rte_bit_assign64(uint64_t *addr, unsigned int nr, bool value)\n+{\n+\tif (value)\n+\t\t__rte_bit_set64(addr, nr);\n+\telse\n+\t\t__rte_bit_clear64(addr, nr);\n+}\n+\n /*------------------------ 32-bit relaxed operations ------------------------*/\n \n /**\n",
    "prefixes": [
        "RFC",
        "v2",
        "1/6"
    ]
}