[PATCH v2 0/2] enable build of lib/stack when using MSVC
    Andre Muezerie 
    andremue at linux.microsoft.com
       
    Tue Jan 28 22:16:52 CET 2025
    
    
  
MSVC does not support inline assembly, which is used by the
implementation of rte_atomic128_cmp_exchange and is needed
by the C11 flavor of lib/stack.
A special implementation of rte_atomic128_cmp_exchange
compatible with MSVC is added to rte_stack_lf_c11.h. It uses an
intrinsic function when using MSVC, and inline assembly when other
compilers are used.
Existing atomic tests (which are not C11 compatible) are
now skipped when using MSVC.
v2:
 * Added MSVC compatible implementation of rte_atomic128_cmp_exchange
 * Skipped non-C11 atomic tests when using MSVC
Andre Muezerie (2):
  test: disable non-C11 atomic tests for MSVC
  stack: enable build with MSVC
 app/test/test_atomic.c       |  2 ++
 lib/stack/meson.build        |  6 ----
 lib/stack/rte_stack_lf_c11.h | 62 ++++++++++++++++++++++++++++++++++--
 3 files changed, 62 insertions(+), 8 deletions(-)
--
2.47.2.vfs.0.1
    
    
More information about the dev
mailing list