mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #3061 from lioncash/constexpr
Gekko: Make sign-extension functions constexpr
This commit is contained in:
commit
a23b20a3ae
@ -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);}
|
||||
|
Loading…
x
Reference in New Issue
Block a user