mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-23 07:50:03 +00:00
Cleanups
This commit is contained in:
parent
aaf01102b9
commit
08c2a3507f
@ -7,41 +7,25 @@
|
||||
INLINE bool SF_IS_BOOL(bool *) { return(1); }
|
||||
INLINE bool SF_IS_BOOL(void *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_AB(bool *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_A8(int8_t *) { return(0); }
|
||||
INLINE uint32_t SF_FORCE_A8(uint8_t *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_A16(int16_t *) { return(0); }
|
||||
INLINE uint32_t SF_FORCE_A16(uint16_t *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_A32(int32_t *) { return(0); }
|
||||
INLINE uint32_t SF_FORCE_A32(uint32_t *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_A64(int64_t *) { return(0); }
|
||||
INLINE uint32_t SF_FORCE_A64(uint64_t *) { return(0); }
|
||||
|
||||
INLINE uint32_t SF_FORCE_D(double *) { return(0); }
|
||||
|
||||
#define SFVARN(x, n) { &(x), SF_IS_BOOL(&(x)) ? 1 : (uint32_t)sizeof(x), MDFNSTATE_RLSB | (SF_IS_BOOL(&(x)) ? MDFNSTATE_BOOL : 0), n }
|
||||
#define SFVAR(x) SFVARN((x), #x)
|
||||
|
||||
#define SFARRAYN(x, l, n) { (x), (uint32_t)(l), 0 | SF_FORCE_A8(x), n }
|
||||
#define SFARRAYN(x, l, n) { (x), (uint32_t)(l), 0, n }
|
||||
#define SFARRAY(x, l) SFARRAYN((x), (l), #x)
|
||||
|
||||
#define SFARRAYBN(x, l, n) { (x), (uint32_t)(l), MDFNSTATE_BOOL | SF_FORCE_AB(x), n }
|
||||
#define SFARRAYBN(x, l, n) { (x), (uint32_t)(l), MDFNSTATE_BOOL, n }
|
||||
#define SFARRAYB(x, l) SFARRAYBN((x), (l), #x)
|
||||
|
||||
#define SFARRAY16N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint16_t)), MDFNSTATE_RLSB16 | SF_FORCE_A16(x), n }
|
||||
#define SFARRAY16N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint16_t)), MDFNSTATE_RLSB16, n }
|
||||
#define SFARRAY16(x, l) SFARRAY16N((x), (l), #x)
|
||||
|
||||
#define SFARRAY32N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint32_t)), MDFNSTATE_RLSB32 | SF_FORCE_A32(x), n }
|
||||
#define SFARRAY32N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint32_t)), MDFNSTATE_RLSB32, n }
|
||||
#define SFARRAY32(x, l) SFARRAY32N((x), (l), #x)
|
||||
|
||||
#define SFARRAY64N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint64_t)), MDFNSTATE_RLSB64 | SF_FORCE_A64(x), n }
|
||||
#define SFARRAY64N(x, l, n) { (x), (uint32_t)((l) * sizeof(uint64_t)), MDFNSTATE_RLSB64, n }
|
||||
#define SFARRAY64(x, l) SFARRAY64N((x), (l), #x)
|
||||
|
||||
#define SFARRAYDN(x, l, n) { (x), (uint32_t)((l) * 8), MDFNSTATE_RLSB64 | SF_FORCE_D(x), n }
|
||||
#define SFARRAYDN(x, l, n) { (x), (uint32_t)((l) * 8), MDFNSTATE_RLSB64, n }
|
||||
#define SFARRAYD(x, l) SFARRAYDN((x), (l), #x)
|
||||
|
||||
#define SFEND { 0, 0, 0, 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user