From 03986c6fad2d4780525e4ee38a6aa257ca27e176 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Oct 2015 22:48:22 -0400 Subject: [PATCH] UCodes: Simplify ExramRead --- Source/Core/Core/HW/DSPHLE/UCodes/UCodes.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.h b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.h index c24df6eb74..34cb6378d4 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.h +++ b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.h @@ -17,12 +17,9 @@ class CMailHandler; -inline bool ExramRead(u32 address) +constexpr bool ExramRead(u32 address) { - if (address & 0x10000000) - return true; - else - return false; + return (address & 0x10000000) != 0; } inline u8 HLEMemory_Read_U8(u32 address)