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 E745545E6B; Tue, 10 Dec 2024 17:32:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CEF94026E; Tue, 10 Dec 2024 17:32:48 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9A1384026A for ; Tue, 10 Dec 2024 17:32:47 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id C7A4320BCAD0; Tue, 10 Dec 2024 08:32:46 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C7A4320BCAD0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733848366; bh=sgluLyhW2H1jBUQhBGzcBxG04ztN4gL3kc3qgbmPOhM=; h=From:To:Cc:Subject:Date:From; b=jCjf5FwOGwexyWMQy5rAN+Oms8dLsx96Rni1z6gpA4yIL2tzawqjwlZow+AOvS7Sd fQ506daqdBxMiDeD/vMeE7mJz05sS7NLvcnqu+Fnzpllq9Lbo0bf2OCK4YcTqP+FiA dKQSgIt4sk9Wv554xMGKy16voQT6CxCcQueSJRIU= From: Andre Muezerie To: Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 0/3] enable build of lib/stack when using MSVC Date: Tue, 10 Dec 2024 08:32:31 -0800 Message-Id: <1733848355-19048-1-git-send-email-andremue@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 MSVC does not support inline assembly, which is used by the implementation of rte_atomic128_cmp_exchange and is needed by lib/stack. An implementation for rte_atomic128_cmp_exchange compatible with MSVC using an intrinsic function is added. For other compilers the existing implementation continues to be used. A basic test is added to provide coverage for this special rte_atomic128_cmp_exchange implementation for MSVC. This same test can be run when using other compilers as well, in which case the old implementation for rte_atomic128_cmp_exchange is used. Andre Muezerie (3): lib/eal: add rte_atomic128_cmp_exchange compatible with MSVC app/test: add basic test for rte_atomic128_cmp_exchange lib/stack: enable build with MSVC app/test/test_atomic.c | 59 +++++++++++++++++++++++++++++ lib/eal/x86/include/rte_atomic.h | 4 +- lib/eal/x86/include/rte_atomic_64.h | 18 +++++++++ lib/stack/meson.build | 6 --- 4 files changed, 79 insertions(+), 8 deletions(-) -- 2.47.0.vfs.0.3