pvAccessCPP
7.1.1
utils
pv
likely.h
1
/**
2
* Copyright - See the COPYRIGHT that is included with this distribution.
3
* pvAccessCPP is distributed subject to a Software License Agreement found
4
* in file LICENSE that is included with this distribution.
5
*/
6
7
#
ifndef
LIKELY_H_
8
#
define
LIKELY_H_
9
10
#
if
defined
(
__GNUC__
)
&&
__GNUC__
>=
3
11
#
define
likely
(
x
)
__builtin_expect
(
x
,
1
)
12
#
define
unlikely
(
x
)
__builtin_expect
(
x
,
0
)
13
#
else
14
#
define
likely
(
x
)
(
x
)
15
#
define
unlikely
(
x
)
(
x
)
16
#
endif
17
18
#
endif
/* LIKELY_H_ */
Generated on Sat Jul 11 2020 19:39:37 for pvAccessCPP by
1.8.13