mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
Gekko: Make sign-extension functions constexpr
This commit is contained in:
parent
b293bd22d6
commit
9f389fdccb
1 changed files with 2 additions and 2 deletions
|
@ -836,5 +836,5 @@ enum
|
||||||
EXCEPTION_FAKE_MEMCHECK_HIT = 0x00000200,
|
EXCEPTION_FAKE_MEMCHECK_HIT = 0x00000200,
|
||||||
};
|
};
|
||||||
|
|
||||||
inline s32 SignExt16(s16 x) {return (s32)(s16)x;}
|
constexpr s32 SignExt16(s16 x) {return (s32)x;}
|
||||||
inline s32 SignExt26(u32 x) {return x & 0x2000000 ? (s32)(x | 0xFC000000) : (s32)(x);}
|
constexpr s32 SignExt26(u32 x) {return x & 0x2000000 ? (s32)(x | 0xFC000000) : (s32)(x);}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue