DPDK 25.03.0-rc0
Macros
rte_branch_prediction.h File Reference

Go to the source code of this file.

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

◆ likely

#define likely (   x)    __builtin_expect(!!(x), 1)

◆ unlikely

#define unlikely (   x)    __builtin_expect(!!(x), 0)