mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:18:12 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -40,17 +40,17 @@ public:
|
|||
|
||||
// NOLINTNEXTLINE(readability-make-member-function-const) const PhysicalAddress shouldn't be allowed to modify the underlying memory
|
||||
[[nodiscard]] u8* as_ptr() { return reinterpret_cast<u8*>(m_address); }
|
||||
[[nodiscard]] const u8* as_ptr() const { return reinterpret_cast<u8 const*>(m_address); }
|
||||
[[nodiscard]] u8 const* as_ptr() const { return reinterpret_cast<u8 const*>(m_address); }
|
||||
|
||||
[[nodiscard]] PhysicalAddress page_base() const { return PhysicalAddress(physical_page_base(m_address)); }
|
||||
[[nodiscard]] PhysicalPtr offset_in_page() const { return PhysicalAddress(m_address & 0xfff).get(); }
|
||||
|
||||
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; }
|
||||
bool operator==(PhysicalAddress const& other) const { return m_address == other.m_address; }
|
||||
bool operator!=(PhysicalAddress const& other) const { return m_address != other.m_address; }
|
||||
bool operator>(PhysicalAddress const& other) const { return m_address > other.m_address; }
|
||||
bool operator>=(PhysicalAddress const& other) const { return m_address >= other.m_address; }
|
||||
bool operator<(PhysicalAddress const& other) const { return m_address < other.m_address; }
|
||||
bool operator<=(PhysicalAddress const& other) const { return m_address <= other.m_address; }
|
||||
|
||||
private:
|
||||
PhysicalPtr m_address { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue