[PATCH v3] eal: fix macros for MSVC: noinline, alwaysinline, hot
David Marchand
david.marchand at redhat.com
Thu Jan 23 14:09:11 CET 2025
On Wed, Jan 22, 2025 at 6:10 PM Morten Brørup <mb at smartsharesystems.com> wrote:
>
> > From: Andre Muezerie [mailto:andremue at linux.microsoft.com]
> > Sent: Wednesday, 22 January 2025 17.24
> >
> > MSVC supports forcing code to be inlined or forcing code to not be
> > inlined, like other compilers. It does not support the "hot" hint
> > though.
> >
> > This patch fixes existing macros __rte_noinline and
> > __rte_always_inline so that they also do what is expected from them
> > when used with MSVC. __rte_hot is updated to become a noop when
> > MSCS is used.
> >
> > Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
Applied, thanks Andre.
--
David Marchand
More information about the dev
mailing list