diff options
Diffstat (limited to 'src/devices/cpu/g65816/g65816cm.h')
-rw-r--r-- | src/devices/cpu/g65816/g65816cm.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/devices/cpu/g65816/g65816cm.h b/src/devices/cpu/g65816/g65816cm.h index 0a30276a7ba..d28ae770b20 100644 --- a/src/devices/cpu/g65816/g65816cm.h +++ b/src/devices/cpu/g65816/g65816cm.h @@ -31,24 +31,7 @@ /* ================================ GENERAL =============================== */ /* ======================================================================== */ -/* This should be set to the default size of your processor (min 16 bit) */ -#undef uint -#define uint unsigned int - -#undef uint8 -#define uint8 unsigned char - -#undef int8 - -/* Allow for architectures that don't have 8-bit sizes */ -#if UCHAR_MAX == 0xff -#define int8 signed char -#define MAKE_INT_8(A) (int8)((A)&0xff) -#else -#define int8 int -static inline int MAKE_INT_8(int A) {return (A & 0x80) ? A | ~0xff : A & 0xff;} -#endif /* UCHAR_MAX == 0xff */ - +#define MAKE_INT_8(A) (int8_t)((A)&0xff) #define MAKE_UINT_8(A) ((A)&0xff) #define MAKE_UINT_16(A) ((A)&0xffff) #define MAKE_UINT_24(A) ((A)&0xffffff) |