[PATCH 1/2] eal: add unreachable and precondition hints

Bruce Richardson bruce.richardson at intel.com
Wed Nov 6 12:48:40 CET 2024


On Fri, Oct 25, 2024 at 11:52:22AM +0000, Morten Brørup wrote:
> Added two new compiler/optimizer hints:
> * The __rte_unreachable hint for use in points in code known never to be
> reached.
> * The __rte_assume hint for providing information about preconditions the
> compiler/optimizer might be unable to figure out by itself.
> 
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> ---
>  lib/eal/include/rte_common.h | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list