Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
rte_branch_prediction.h(3)	      DPDK	      rte_branch_prediction.h(3)

NAME
     rte_branch_prediction.h

SYNOPSIS
   Macros
     #define likely(x)	 __builtin_expect(!!(x), 1)
     #define unlikely(x)   __builtin_expect(!!(x), 0)

Detailed Description
     Branch Prediction Helpers in RTE

     Definition in file rte_branch_prediction.h.

Macro Definition Documentation
   #define likely(x)   __builtin_expect(!!(x), 1)
     Check if a branch is likely to be taken.

     This  compiler  builtin  allows  the  developer  to indicate if a branch is
     likely to be taken. Example:

     if (likely(x > 1)) do_stuff();

     Definition at line 26 of file rte_branch_prediction.h.

   #define unlikely(x)	 __builtin_expect(!!(x), 0)
     Check if a branch is unlikely to be taken.

     This compiler builtin allows the developer to indicate if a branch  is  un-
     likely to be taken. Example:

     if (unlikely(x < 1)) do_stuff();

     Definition at line 43 of file rte_branch_prediction.h.

Author
     Generated automatically by Doxygen for DPDK from the source code.

Version 25.11.0 		 Thu Aug 27 2026      rte_branch_prediction.h(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=likely&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help