Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138647/?format=api
http://patches.dpdk.org/api/patches/138647/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1710970416-27841-2-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "http://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": "<1710970416-27841-2-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1710970416-27841-2-git-send-email-roretzla@linux.microsoft.com", "date": "2024-03-20T21:33:35", "name": "[1/2] eal: provide macro for GCC builtin constant intrinsic", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c25772a6740b3496bb07b97e471273caf678745a", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1710970416-27841-2-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31578, "url": "http://patches.dpdk.org/api/series/31578/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31578", "date": "2024-03-20T21:33:34", "name": "provide toolchain abstracted __builtin_constant_p", "version": 1, "mbox": "http://patches.dpdk.org/series/31578/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/138647/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/138647/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 D5CC243D0A;\n\tWed, 20 Mar 2024 22:33:45 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 541FE42E2D;\n\tWed, 20 Mar 2024 22:33:42 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 3DEE242D80\n for <dev@dpdk.org>; Wed, 20 Mar 2024 22:33:40 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 85C1720B74C1; Wed, 20 Mar 2024 14:33:39 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 85C1720B74C1", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1710970419;\n bh=AoxkIcz98u0FQ8JOWwLgH8q2jdgzPIGO2CL1CCXocu0=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=idE/VIhte7b//1Xty0ytmLVT7qm29PBcJxJwJn5xcu7rwuON8M1BRMOLEaz2ikkxV\n 0vNDNjtR2zQB1Ewv13GChjkpWZRpxhgaY2bLBvUnQmjfQQaXbROh9XhJ/SlIceh5A3\n iTMvTEINIgODNEmpnPbhim4esHP2lLG4vFrQ2ibQ=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH 1/2] eal: provide macro for GCC builtin constant intrinsic", "Date": "Wed, 20 Mar 2024 14:33:35 -0700", "Message-Id": "<1710970416-27841-2-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1710970416-27841-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1710970416-27841-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 <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": "MSVC does not have a __builtin_constant_p intrinsic so provide\n__rte_constant(e) that expands false for MSVC and to the intrinsic for\nGCC.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/rte_common.h | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h\nindex 298a5c6..d520be6 100644\n--- a/lib/eal/include/rte_common.h\n+++ b/lib/eal/include/rte_common.h\n@@ -44,6 +44,12 @@\n #endif\n #endif\n \n+#ifdef RTE_TOOLCHAIN_MSVC\n+#define __rte_constant(e) 0\n+#else\n+#define __rte_constant(e) __extension__(__builtin_constant_p(e))\n+#endif\n+\n /*\n * RTE_TOOLCHAIN_GCC is defined if the target is built with GCC,\n * while a host application (like pmdinfogen) may have another compiler.\n", "prefixes": [ "1/2" ] }{ "id": 138647, "url": "