[PATCH] RFC: use C11 alignas instead of GCC attribute aligned
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed Nov 15 18:39:56 CET 2023
Now that we require a C11 conformant toolchain we are able to improve
portability by further adoption of C11 features.
Adapt EAL to use C11 alignas replacing __rte_cache_aligned and
__rte_aligned(a) that expand to __attribute__((__aligned__(a))).
Note: it appears that use of alignas has exposed a bug in
lib/eal/riscv/include/rte_vect.h where the alignment
specified was reduced to 8 for xmm_t.
Please comment, subject to the outcome I will submit further series for
lib/*
Thanks
Tyler Retzlaff (1):
eal: use C11 alignas instead of GCC attribute aligned
lib/eal/arm/include/rte_vect.h | 4 +++-
lib/eal/common/malloc_elem.h | 4 +++-
lib/eal/common/malloc_heap.h | 4 +++-
lib/eal/common/rte_keepalive.c | 4 +++-
lib/eal/common/rte_random.c | 5 ++++-
lib/eal/common/rte_service.c | 7 +++++--
lib/eal/include/generic/rte_atomic.h | 4 +++-
lib/eal/loongarch/include/rte_vect.h | 7 +++++--
lib/eal/ppc/include/rte_vect.h | 5 ++++-
lib/eal/riscv/include/rte_vect.h | 4 +++-
lib/eal/x86/include/rte_vect.h | 4 +++-
lib/eal/x86/rte_power_intrinsics.c | 8 ++++++--
12 files changed, 45 insertions(+), 15 deletions(-)
--
1.8.3.1
More information about the dev
mailing list