[PATCH v4 0/5] add portable version of __builtin_add_overflow
    Andre Muezerie 
    andremue at linux.microsoft.com
       
    Thu Mar 13 21:00:38 CET 2025
    
    
  
__builtin_add_overflow is gcc specific. There's a need for a portable
version that can also be used with other compilers.
v4:
- Added define in ice_osdep.h to use portable version of
  __builtin_add_overflow when using MSVC.
- Undid all changes from drivers/net/intel/ice/base/ice_nvm.c.
v3:
- Rebase on top of latest main.
Andre Muezerie (5):
  maintainers: add portable version of __builtin_add_overflow
  eal: add portable version of __builtin_add_overflow
  doc/api: add portable version of __builtin_add_overflow
  net/intel: use portable version of __builtin_add_overflow
  app/test: add tests for portable version of __builtin_add_overflow
 MAINTAINERS                            |   1 +
 app/test/meson.build                   |   1 +
 app/test/test_math.c                   | 170 +++++++++++++++++++++++++
 doc/api/doxy-api-index.md              |   1 +
 drivers/net/intel/ice/base/ice_osdep.h |   5 +
 lib/eal/include/meson.build            |   1 +
 lib/eal/include/rte_math.h             |  46 +++++++
 7 files changed, 225 insertions(+)
 create mode 100644 app/test/test_math.c
 create mode 100644 lib/eal/include/rte_math.h
--
2.48.1.vfs.0.1
    
    
More information about the dev
mailing list