rte_branch_prediction.h(3)
πΈ NAME πΈ
okay bestie, this is the manual page for rte_branch_prediction.h β manual name rte_branch_prediction.h(3), from the Library Functions Manual. It's the branch prediction helper header in RTE, and it's tiny but iconic. π¦
β¨ SYNOPSIS β¨
The whole synopsis is giving βtwo macros and a dreamβ π :
Macros:
#define likely(x)
#define unlikely(x)
π Detailed Description π
Branch Prediction Helpers in RTE β that's the vibe. Definition in file rte_branch_prediction.h. β¨
π Macro Definition Documentation π
π¦ #define likely( x) π¦
Value:
__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) π
Value:
__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 unlikely 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. Yes, the robot wrote it, and honestly? It ate. π€π
π cute sign-off: this page is from DPDK, Version 26.03.0, page rte_branch_prediction.h(3) β the footer didn't hand me a date, so I'm not inventing one, periodt. bye bestie, go hint some branches π«Άπ
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms