DPDK
23.07.0
Main Page
Related Pages
+
Data Structures
Data Structures
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
c
g
r
+
Variables
a
c
d
e
l
n
r
s
+
Typedefs
a
c
d
e
h
l
m
p
r
s
t
+
Enumerations
d
r
+
Enumerator
c
e
f
r
s
w
+
Macros
_
b
c
i
l
m
o
p
r
s
t
u
v
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
lib
eal
include
rte_branch_prediction.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2010-2014 Intel Corporation
3
*/
4
10
#ifndef _RTE_BRANCH_PREDICTION_H_
11
#define _RTE_BRANCH_PREDICTION_H_
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
26
#ifndef likely
27
#define likely(x) __builtin_expect(!!(x), 1)
28
#endif
/* likely */
29
39
#ifndef unlikely
40
#define unlikely(x) __builtin_expect(!!(x), 0)
41
#endif
/* unlikely */
42
43
#ifdef __cplusplus
44
}
45
#endif
46
47
#endif
/* _RTE_BRANCH_PREDICTION_H_ */
Generated by
1.8.13