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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/// Branch prediction hint: marks code path as unlikely (cold)
///
/// This function is used to hint the compiler that a branch is unlikely to be taken,
/// which can improve performance by optimizing the common path.
///
/// 分支预测提示:标记代码路径为不太可能执行(冷路径)
///
/// 此函数用于提示编译器某个分支不太可能被执行,
/// 通过优化常见路径来提高性能。
pub
/// Branch prediction hint: likely condition
///
/// Hints to the compiler that the condition is likely to be true.
/// Returns the original boolean value.
///
/// 分支预测提示:提示编译器这个条件很可能为真
///
/// # Parameters
/// - `b`: The boolean condition to evaluate
///
/// # Returns
/// The original boolean value
///
/// # 参数
/// - `b`: 要评估的布尔条件
///
/// # 返回值
/// 原始的布尔值
pub
/// Branch prediction hint: unlikely condition
///
/// Hints to the compiler that the condition is unlikely to be true.
/// Returns the original boolean value.
///
/// 分支预测提示:提示编译器这个条件很可能为假
///
/// # Parameters
/// - `b`: The boolean condition to evaluate
///
/// # Returns
/// The original boolean value
///
/// # 参数
/// - `b`: 要评估的布尔条件
///
/// # 返回值
/// 原始的布尔值
pub