plebble
likely.h
Go to the documentation of this file.
1 /*
2 -------------------------------------------------------------------------------
3  PLEBBLE
4 -------------------------------------------------------------------------------
5  Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6  Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7 
8  This file is part of our Plebble(R) Platform.
9 
10  The code below cannot be copied, used for any purpose other than the one
11  agreed and/or distributed without the express permission of
12  KATLAS Technology.
13 -------------------------------------------------------------------------------
14 
15 
16 */
17 #ifndef USGOV_a5f6edaffbe1731ffbd5f85413e141177eae17e67770c54f0bff8093b4b12d9f
18 #define USGOV_a5f6edaffbe1731ffbd5f85413e141177eae17e67770c54f0bff8093b4b12d9f
19 
20 #ifdef __GNUC__
21 # if (__GNUC__ >= 3)
22 # define likely(x) __builtin_expect ((x), 1)
23 # define unlikely(x) __builtin_expect ((x), 0)
24 # else
25 # define likely(x) (x)
26 # define unlikely(x) (x)
27 # endif
28 #else
29 # define likely(x) (x)
30 # define unlikely(x) (x)
31 #endif
32 
33 #endif
34