|
#define | RARCH_MAX_SUBSYSTEMS 10 |
|
#define | RARCH_MAX_SUBSYSTEM_ROMS 10 |
|
#define | PATH_MAX_LENGTH 4096 |
|
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
|
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
|
#define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
|
#define | BITS_GET_ELEM(a, i) ((a).data[i]) |
|
#define | BITS_GET_ELEM_PTR(a, i) ((a)->data[i]) |
|
#define | BIT_SET(a, bit) ((a)[(bit) >> 3] |= (1 << ((bit) & 7))) |
|
#define | BIT_CLEAR(a, bit) ((a)[(bit) >> 3] &= ~(1 << ((bit) & 7))) |
|
#define | BIT_GET(a, bit) (((a)[(bit) >> 3] >> ((bit) & 7)) & 1) |
|
#define | BIT16_SET(a, bit) ((a) |= (1 << ((bit) & 15))) |
|
#define | BIT16_CLEAR(a, bit) ((a) &= ~(1 << ((bit) & 15))) |
|
#define | BIT16_GET(a, bit) (((a) >> ((bit) & 15)) & 1) |
|
#define | BIT16_CLEAR_ALL(a) ((a) = 0) |
|
#define | BIT32_SET(a, bit) ((a) |= (1 << ((bit) & 31))) |
|
#define | BIT32_CLEAR(a, bit) ((a) &= ~(1 << ((bit) & 31))) |
|
#define | BIT32_GET(a, bit) (((a) >> ((bit) & 31)) & 1) |
|
#define | BIT32_CLEAR_ALL(a) ((a) = 0) |
|
#define | BIT64_SET(a, bit) ((a) |= (UINT64_C(1) << ((bit) & 63))) |
|
#define | BIT64_CLEAR(a, bit) ((a) &= ~(UINT64_C(1) << ((bit) & 63))) |
|
#define | BIT64_GET(a, bit) (((a) >> ((bit) & 63)) & 1) |
|
#define | BIT64_CLEAR_ALL(a) ((a) = 0) |
|
#define | BIT128_SET(a, bit) ((a).data[(bit) >> 5] |= (1 << ((bit) & 31))) |
|
#define | BIT128_CLEAR(a, bit) ((a).data[(bit) >> 5] &= ~(1 << ((bit) & 31))) |
|
#define | BIT128_GET(a, bit) (((a).data[(bit) >> 5] >> ((bit) & 31)) & 1) |
|
#define | BIT128_CLEAR_ALL(a) memset(&(a), 0, sizeof(a)) |
|
#define | BIT128_SET_PTR(a, bit) BIT128_SET(*a, bit) |
|
#define | BIT128_CLEAR_PTR(a, bit) BIT128_CLEAR(*a, bit) |
|
#define | BIT128_GET_PTR(a, bit) BIT128_GET(*a, bit) |
|
#define | BIT128_CLEAR_ALL_PTR(a) BIT128_CLEAR_ALL(*a) |
|
#define | BIT256_SET(a, bit) BIT128_SET(a, bit) |
|
#define | BIT256_CLEAR(a, bit) BIT128_CLEAR(a, bit) |
|
#define | BIT256_GET(a, bit) BIT128_GET(a, bit) |
|
#define | BIT256_CLEAR_ALL(a) BIT128_CLEAR_ALL(a) |
|
#define | BIT256_SET_PTR(a, bit) BIT256_SET(*a, bit) |
|
#define | BIT256_CLEAR_PTR(a, bit) BIT256_CLEAR(*a, bit) |
|
#define | BIT256_GET_PTR(a, bit) BIT256_GET(*a, bit) |
|
#define | BIT256_CLEAR_ALL_PTR(a) BIT256_CLEAR_ALL(*a) |
|
#define | BITS_COPY16_PTR(a, bits) |
|
#define | BITS_COPY32_PTR(a, bits) |
|
#define | PRI_SIZET "lu" |
|