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

2024-10-08 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 2 October 2024 17.43 > > 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 > warn

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

2024-10-02 Thread Ajit Khaparde
On Wed, Oct 2, 2024 at 9:45 AM Wathsala Wathawana Vithanage wrote: > > > > > -Original Message- > > Subject: [PATCH v6 17/17] eal: add function attributes for allocation > > functions > > > > The allocation functions take a alignment argument

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

2024-10-02 Thread Wathsala Wathawana Vithanage
> -Original Message- > Subject: [PATCH v6 17/17] eal: add function attributes for allocation > functions > > 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 &g

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

2024-10-02 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. Newer versions of GCC have a malloc attribute that can be used to find mismatches between