[PATCH] eal: abstract compiler atomics
Tyler Retzlaff
roretzla at linux.microsoft.com
Thu Jan 12 22:26:24 CET 2023
Introduce an abstraction for compiler specific atomics and a meson
option to allow standard C11 atomics use.
Note, this series does not attempt to convert to the use of the
abstraction it only introduces it as per the plan discussed here.
http://mails.dpdk.org/archives/dev/2023-January/258693.html
devtools checkatches warnings are expected as we intend no
functional change with this series. Subsequent series will address
the use of __sync_xxx builtins warning.
Tyler Retzlaff (1):
eal: introduce atomics abstraction
config/meson.build | 11 +++
lib/eal/arm/include/rte_atomic_32.h | 6 +-
lib/eal/arm/include/rte_atomic_64.h | 6 +-
lib/eal/include/generic/rte_atomic.h | 156 ++++++++++++++++++++++++++++++++-
lib/eal/loongarch/include/rte_atomic.h | 6 +-
lib/eal/ppc/include/rte_atomic.h | 6 +-
lib/eal/riscv/include/rte_atomic.h | 6 +-
lib/eal/x86/include/rte_atomic.h | 8 +-
meson_options.txt | 2 +
9 files changed, 199 insertions(+), 8 deletions(-)
--
1.8.3.1
More information about the dev
mailing list