diff options
Diffstat (limited to 'src/devices/cpu/sparc/sparcdefs.h')
-rw-r--r-- | src/devices/cpu/sparc/sparcdefs.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/cpu/sparc/sparcdefs.h b/src/devices/cpu/sparc/sparcdefs.h index e7c1a5b1ab0..823fb3e52f3 100644 --- a/src/devices/cpu/sparc/sparcdefs.h +++ b/src/devices/cpu/sparc/sparcdefs.h @@ -88,18 +88,18 @@ #define OPC ((op >> 5) & 0x1ff) #define OPFLOW ((op >> 5) & 0x3f) -#define DISP30 (INT32(op << 2)) -#define DISP22 (INT32(op << 10) >> 8) -#define DISP19 (INT32(op << 13) >> 11) -#define DISP16 (INT32(((op << 10) & 0xc0000000) | ((op << 16) & 0x3fff0000)) >> 14) +#define DISP30 (int32_t(op << 2)) +#define DISP22 (int32_t(op << 10) >> 8) +#define DISP19 (int32_t(op << 13) >> 11) +#define DISP16 (int32_t(((op << 10) & 0xc0000000) | ((op << 16) & 0x3fff0000)) >> 14) #define IMM22 (op << 10) #define CONST22 (op & 0x3fffff) -#define SIMM13 (INT32(op << 19) >> 19) -#define SIMM11 (INT32(op << 21) >> 21) -#define SIMM10 (INT32(op << 22) >> 22) -#define SIMM8 (INT32(op << 24) >> 24) +#define SIMM13 (int32_t(op << 19) >> 19) +#define SIMM11 (int32_t(op << 21) >> 21) +#define SIMM10 (int32_t(op << 22) >> 22) +#define SIMM8 (int32_t(op << 24) >> 24) #define IMM7 (op & 0x7f) -#define SIMM7 (INT32(op << 25) >> 25) +#define SIMM7 (int32_t(op << 25) >> 25) #define SHCNT32 (op & 31) #define SHCNT64 (op & 63) #define IAMODE (op & 0x7) |