Kernel: Remove unnecessary branch from uncanonicalizing addresses

This commit is contained in:
Bananymous 2024-09-10 16:19:16 +03:00
parent c65613901f
commit a4838386e6
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ namespace Kernel
static constexpr inline uintptr_t uncanonicalize(uintptr_t addr)
{
if (addr & 0x0000800000000000)
return addr & ~0xFFFF000000000000;
return addr;
return addr & 0x0000FFFFFFFFFFFF;
}
static constexpr inline uintptr_t canonicalize(uintptr_t addr)