mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Add PhysicalAddress::offset().
This commit is contained in:
parent
c088529cd8
commit
2735b7e50d
Notes:
sideshowbarker
2024-07-19 16:05:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2735b7e50da
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ public:
|
|||
PhysicalAddress() { }
|
||||
explicit PhysicalAddress(dword address) : m_address(address) { }
|
||||
|
||||
PhysicalAddress offset(dword o) const { return PhysicalAddress(m_address + o); }
|
||||
dword get() const { return m_address; }
|
||||
void set(dword address) { m_address = address; }
|
||||
void mask(dword m) { m_address &= m; }
|
||||
|
|
Loading…
Add table
Reference in a new issue