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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#[allow(missing_copy_implementations)]
#[allow(missing_debug_implementations)]
pub struct IcedFeatures;
impl IcedFeatures {
#[must_use]
#[inline]
pub fn has_gas() -> bool {
cfg!(feature = "gas")
}
#[must_use]
#[inline]
pub fn has_intel() -> bool {
cfg!(feature = "intel")
}
#[must_use]
#[inline]
pub fn has_masm() -> bool {
cfg!(feature = "masm")
}
#[must_use]
#[inline]
pub fn has_nasm() -> bool {
cfg!(feature = "nasm")
}
#[must_use]
#[inline]
pub fn has_fast_fmt() -> bool {
cfg!(feature = "fast_fmt")
}
#[must_use]
#[inline]
pub fn has_decoder() -> bool {
cfg!(feature = "decoder")
}
#[must_use]
#[inline]
pub fn has_encoder() -> bool {
cfg!(feature = "encoder")
}
#[must_use]
#[inline]
pub fn has_block_encoder() -> bool {
cfg!(all(feature = "encoder", feature = "block_encoder"))
}
#[must_use]
#[inline]
pub fn has_op_code_info() -> bool {
cfg!(all(feature = "encoder", feature = "op_code_info"))
}
#[must_use]
#[inline]
pub fn has_instruction_info() -> bool {
cfg!(feature = "instr_info")
}
}