mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Kernel: Add some comparison operators to PhysicalAddress
This commit is contained in:
parent
8df44b476d
commit
1a77dfed23
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ public:
|
|||
dword page_base() const { return m_address & 0xfffff000; }
|
||||
|
||||
bool operator==(const PhysicalAddress& other) const { return m_address == other.m_address; }
|
||||
bool operator!=(const PhysicalAddress& other) const { return m_address != other.m_address; }
|
||||
bool operator>(const PhysicalAddress& other) const { return m_address > other.m_address; }
|
||||
bool operator>=(const PhysicalAddress& other) const { return m_address >= other.m_address; }
|
||||
bool operator<(const PhysicalAddress& other) const { return m_address < other.m_address; }
|
||||
bool operator<=(const PhysicalAddress& other) const { return m_address <= other.m_address; }
|
||||
|
||||
private:
|
||||
dword m_address { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue