Re: [PATCH v3 17/18] eal: add function attributes for allocation functions

2024-10-08 Thread Stephen Hemminger
On Tue, 8 Oct 2024 10:29:23 +0200 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Sunday, 29 September 2024 17.35 > > > > The allocation functions take a alignment argument that > > can be useful to hint the compiler optimizer. > > > > This is supp

RE: [PATCH v3 17/18] eal: add function attributes for allocation functions

2024-10-08 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Sunday, 29 September 2024 17.35 > > The allocation functions take a alignment argument that > can be useful to hint the compiler optimizer. > > This is supported by Gcc and Clang but only useful with > Gcc because Clang gives w

Re: [PATCH v3 17/18] eal: add function attributes for allocation functions

2024-09-30 Thread fengchengwen
Acked-by: Chengwen Feng On 2024/9/29 23:34, Stephen Hemminger wrote: > The allocation functions take a alignment argument that > can be useful to hint the compiler optimizer. > > This is supported by Gcc and Clang but only useful with > Gcc because Clang gives warning if alignment is 0. > > Rec

[PATCH v3 17/18] eal: add function attributes for allocation functions

2024-09-29 Thread Stephen Hemminger
The allocation functions take a alignment argument that can be useful to hint the compiler optimizer. This is supported by Gcc and Clang but only useful with Gcc because Clang gives warning if alignment is 0. Recent versions of GCC have a malloc attribute that can be used to find mismatches betwe