Loading...
Searching...
No Matches
Go to the documentation of this file.
10#ifndef _RTE_BRANCH_PREDICTION_H_
11#define _RTE_BRANCH_PREDICTION_H_
27#ifdef RTE_TOOLCHAIN_MSVC
28#define likely(x) (!!(x))
30#define likely(x) __builtin_expect(!!(x), 1)
44#ifdef RTE_TOOLCHAIN_MSVC
45#define unlikely(x) (!!(x))
47#define unlikely(x) __builtin_expect(!!(x), 0)