mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Common: Maintain C++11 support in sign extend.
This commit is contained in:
1 parent
1b00da2f3a
commit
5d60fa0d0d
23 files changed
+73
-60
No files matched your search
@@ -28,9 +28,8 @@ namespace MIPSCodeUtils
|
||||
#define OP_SYSCALL_MASK 0xFC00003F
|
||||
#define _RS ((op>>21) & 0x1F)
|
||||
#define _RT ((op>>16) & 0x1F)
|
||||
#define _IMM16 (signed short)(op & 0xFFFF)
|
||||
#define _IMM26 (op & 0x03FFFFFF)
|
||||
#define TARGET16 ((int)((uint32_t)(int)_IMM16 << 2))
|
||||
#define TARGET16 ((int)(SignExtend16ToU32(op) << 2))
|
||||
#define TARGET26 (_IMM26 << 2)
|
||||
|
||||
u32 GetJumpTarget(u32 addr) {
|
||||
|
||||
Reference in new issue
Block a user