From 9f389fdccbaca25b47904f59b4b85f4324419a6c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 18 Sep 2015 08:54:16 -0400 Subject: [PATCH] Gekko: Make sign-extension functions constexpr --- Source/Core/Core/PowerPC/Gekko.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Gekko.h b/Source/Core/Core/PowerPC/Gekko.h index b0638b5301..52910f8780 100644 --- a/Source/Core/Core/PowerPC/Gekko.h +++ b/Source/Core/Core/PowerPC/Gekko.h @@ -836,5 +836,5 @@ enum EXCEPTION_FAKE_MEMCHECK_HIT = 0x00000200, }; -inline s32 SignExt16(s16 x) {return (s32)(s16)x;} -inline s32 SignExt26(u32 x) {return x & 0x2000000 ? (s32)(x | 0xFC000000) : (s32)(x);} +constexpr s32 SignExt16(s16 x) {return (s32)x;} +constexpr s32 SignExt26(u32 x) {return x & 0x2000000 ? (s32)(x | 0xFC000000) : (s32)(x);}