Kernel: Remove unnecessary branch from uncanonicalizing addresses
This commit is contained in:
parent
c65613901f
commit
a4838386e6
|
@ -37,9 +37,7 @@ namespace Kernel
|
||||||
|
|
||||||
static constexpr inline uintptr_t uncanonicalize(uintptr_t addr)
|
static constexpr inline uintptr_t uncanonicalize(uintptr_t addr)
|
||||||
{
|
{
|
||||||
if (addr & 0x0000800000000000)
|
return addr & 0x0000FFFFFFFFFFFF;
|
||||||
return addr & ~0xFFFF000000000000;
|
|
||||||
return addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr inline uintptr_t canonicalize(uintptr_t addr)
|
static constexpr inline uintptr_t canonicalize(uintptr_t addr)
|
||||||
|
|
Loading…
Reference in New Issue