Thread (40 messages) 40 messages, 8 authors, 2024-02-14

RE: [EXT] [PATCH 8/9] reorder: use C11 alignof

From: Volodymyr Fialko <hidden>
Date: 2024-01-25 00:36:18

-----Original Message-----
From: Tyler Retzlaff <redacted>
Sent: Thursday, January 25, 2024 12:18 AM
To: dev@dpdk.org
Cc: Akhil Goyal <redacted>; Andrew Rybchenko <redacted>;
Anoob Joseph [off-list ref]; Ferruh Yigit [off-list ref]; Honnappa Nagarahalli
[off-list ref]; Jerin Jacob [off-list ref]; Konstantin Ananyev
[off-list ref]; Nithin Kumar Dabilpuram [off-list ref]; Ori Kam
[off-list ref]; Pavan Nikhilesh Bhagavatula [off-list ref]; Thomas Monjalon
[off-list ref]; Volodymyr Fialko [off-list ref]; Tyler Retzlaff
[off-list ref]
Subject: [EXT] [PATCH 8/9] reorder: use C11 alignof

External Email

----------------------------------------------------------------------
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains.

Signed-off-by: Tyler Retzlaff <redacted>
---
 lib/reorder/rte_reorder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
__alignof__ is supported by GCC from C99, but since DPDK 23.11 C11 compiler is required anyway, It should be fine to switch.

Acked-by: Volodymyr Fialko <redacted>

/Volodymyr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help