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 4F32943D0A; Wed, 20 Mar 2024 22:33:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DD6B42D80; Wed, 20 Mar 2024 22:33:41 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 21132427E8 for ; Wed, 20 Mar 2024 22:33:40 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 78A1D20B74C0; Wed, 20 Mar 2024 14:33:39 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 78A1D20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710970419; bh=FvapNJh9LIddDP9UyiehFr5Dut2LyJT33WrK2D+yiJU=; h=From:To:Cc:Subject:Date:From; b=K7bYJwPMQTEkrTHRu2LLUUDIRawsetbCpRjxq1sdKh2GLFGGS/XI/BRfOz7PZSKBc 43J+GamAY1wsYC3QCCnP9FZLIB7zwcRG66Xg67LLqq9w3zTWXV7Tc5Y1c2i0yZDS2d JhPth79gXp22zMGqghevikZfSWzFXr+/jwiF27gA= From: Tyler Retzlaff To: dev@dpdk.org Cc: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Andrew Rybchenko , Tyler Retzlaff Subject: [PATCH 0/2] provide toolchain abstracted __builtin_constant_p Date: Wed, 20 Mar 2024 14:33:34 -0700 Message-Id: <1710970416-27841-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 Decouple direct dependency on GCC built-in __builtin_constant_p provide a new macro __rte_constant(e) that expands to the built-in for GCC and to false for MSVC. Tyler Retzlaff (2): eal: provide macro for GCC builtin constant intrinsic mempool: use rte constant macro instead of GCC builtin lib/eal/include/rte_common.h | 6 ++++++ lib/mempool/rte_mempool.h | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) -- 1.8.3.1