From 5821e63257f83303ad6be6825c5acf892c1ec42f Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 4 Dec 2015 22:31:16 -0500 Subject: [PATCH] LW_VAddr: Fold two VAddr comparisons into one branch. --- Source/Project64/N64System/Mips/MemoryVirtualMem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64/N64System/Mips/MemoryVirtualMem.cpp b/Source/Project64/N64System/Mips/MemoryVirtualMem.cpp index 1f8a415b5..b274f7197 100644 --- a/Source/Project64/N64System/Mips/MemoryVirtualMem.cpp +++ b/Source/Project64/N64System/Mips/MemoryVirtualMem.cpp @@ -303,7 +303,7 @@ bool CMipsMemoryVM::LW_VAddr(uint32_t VAddr, uint32_t& Value) { if (VAddr >= 0xA3F00000 && VAddr < 0xC0000000) { - if (VAddr < 0xA4000000 || VAddr >= 0xA4002000) + if ((VAddr & 0xFFFFE000ul) != 0xA4000000ul) // !(A4000000 <= addr < A4002000) { VAddr &= 0x1FFFFFFF; LW_NonMemory(VAddr, &Value);