blob: 8c582cf9325cfe39bc84ab28bf093815eab02b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
if(x)[[likely]]{}
if(x)
[[unlikely]]
{}
g();
if(x)[[likely]]l();
if(x)
[[unlikely]]
l();
g();
if(x)
[[unlikely]]
l1();
else
l2();
g();
if(x)
#if __has_cpp_attribute(likely)
[[likely]]
#endif
return false;
else
return true;
g();
while(true)[[likely]]{break;}
while(true)
[[unlikely]]
{break;}
g();
if(x)
[[likely]]
{
if(y)
[[likely]]
{}
}
g();
|