Re: [PATCH 01/16] eal: add function attributes for allocation functions

2024-09-27 Thread Stephen Hemminger
On Fri, 27 Sep 2024 18:09:22 -0400 David Marchand wrote: > On Fri, Sep 27, 2024 at 4:48 PM 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

Re: [PATCH 01/16] eal: add function attributes for allocation functions

2024-09-27 Thread David Marchand
On Fri, Sep 27, 2024 at 4:48 PM 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. > > Recent versions

[PATCH 01/16] eal: add function attributes for allocation functions

2024-09-27 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