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
#[derive(Default, Debug, Copy, Clone)]
#[repr(C)]
pub struct FloatingPointUnitInstructionPointerOffset16Bit
{
pub instruction_pointer_offset: u16,
reserved0: u16,
pub instruction_pointer_selector: u16,
reserved1: u16,
}
impl PartialEq for FloatingPointUnitInstructionPointerOffset16Bit
{
#[inline(always)]
fn eq(&self, other: &Self) -> bool
{
self.instruction_pointer_selector == other.instruction_pointer_selector && self.instruction_pointer_offset == other.instruction_pointer_offset
}
}
impl Eq for FloatingPointUnitInstructionPointerOffset16Bit
{
}
impl PartialOrd for FloatingPointUnitInstructionPointerOffset16Bit
{
#[inline(always)]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
{
Some(self.cmp(other))
}
}
impl Ord for FloatingPointUnitInstructionPointerOffset16Bit
{
#[inline(always)]
fn cmp(&self, other: &Self) -> Ordering
{
self.instruction_pointer_selector.cmp(&other.instruction_pointer_selector).then_with(|| self.instruction_pointer_offset.cmp(&other.instruction_pointer_offset))
}
}
impl Hash for FloatingPointUnitInstructionPointerOffset16Bit
{
#[inline(always)]
fn hash<H: Hasher>(&self, state: &mut H)
{
self.instruction_pointer_selector.hash(state);
self.instruction_pointer_offset.hash(state);
}
}