[PATCH v3] eal: fix macros for MSVC: noinline, alwaysinline, hot
Morten Brørup
mb at smartsharesystems.com
Wed Jan 22 18:10:30 CET 2025
> 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>
More information about the dev
mailing list