Header for the Platform Support Package - Platform dependent types. More...
Macros | |
#define | RDM_UNREF(a) ((void) a) |
#define | RDM_UNSET(a) = a |
#define | MAKE_RDM_BOOL(x) ((x) ? RDM_TRUE : RDM_FALSE) |
#define | EXTERNAL_FCN_PTR EXTERNAL_FCN * |
#define | RDM_LEN(x) (sizeof (x) / sizeof (x[0])) |
#define | RDM_MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | RDM_MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | RDM_INT8_MIN ((int8_t) 0x80U) |
#define | RDM_INT8_MAX ((int8_t) 0x7FU) |
#define | RDM_UINT8_MAX ((uint8_t) 0xFFU) |
#define | RDM_INT16_MIN ((int16_t) 0x8000U) |
#define | RDM_INT16_MAX ((int16_t) 0x7FFFU) |
#define | RDM_UINT16_MAX ((uint16_t) 0xFFFFU) |
#define | RDM_INT32_MIN ((int32_t) 0x80000000U) |
#define | RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU) |
#define | RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU) |
#define | RDM_INT64_MIN (-9223372036854775807LL - 1) |
#define | RDM_INT64_MAX (9223372036854775807LL) |
#define | RDM_UINT64_MAX (18446744073709551615ULL) |
#define | RDM_INT64_FMT "%" RDM_64BIT_CODE "d" |
#define | RDM_UINT64_FMT "%" RDM_64BIT_CODE "u" |
#define | RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
#define | RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
#define | RDM_INT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "d" |
#define | RDM_UINT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "u" |
#define | RDM_INT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X" |
#define | RDM_UINT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X" |
#define | RDM_STRINGIFY_(data) #data |
#define | RDM_STRINGIFY(data) RDM_STRINGIFY_ (data) |
Enumerations | |
enum | RDM_BOOL_T { RDM_FALSE = 0, RDM_TRUE = 1, __RDM_BOOL_MAX = 0x7fffffff } |
enum | RDM_COMPARE { RDM_LT = -1, RDM_EQ = 0, RDM_GT = 1 } |
Header for the Platform Support Package - Platform dependent types.
#define EXTERNAL_FCN_PTR EXTERNAL_FCN * |
#define RDM_INT16_MAX ((int16_t) 0x7FFFU) |
Maximum value for int64_t
#define RDM_INT16_MIN ((int16_t) 0x8000U) |
Minimum value for int16_t
#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU) |
Maximum value for int64_t
#define RDM_INT32_MIN ((int32_t) 0x80000000U) |
Minimum value for int32_t
#define RDM_INT64_FMT "%" RDM_64BIT_CODE "d" |
Format string for 64 bit integer
#define RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
Format string for 64 bit integer in hexadecimal
#define RDM_INT64_FMT_SIZE | ( | size | ) | "%" #size RDM_64BIT_CODE "d" |
Format string for 64 bit integer where size is specified
#define RDM_INT64_FMT_SIZE_HEX | ( | size | ) | "%" #size RDM_64BIT_CODE "X" |
Format string for 64 bit integer in hexadecimal where size is specified
#define RDM_INT64_MAX (9223372036854775807LL) |
Maximum value for int64_t
#define RDM_INT64_MIN (-9223372036854775807LL - 1) |
Minimum value for int64_t
#define RDM_INT8_MAX ((int8_t) 0x7FU) |
Maximum value for int64_t
#define RDM_INT8_MIN ((int8_t) 0x80U) |
Minimum value for int_t
#define RDM_LEN | ( | x | ) | (sizeof (x) / sizeof (x[0])) |
Macro to get the number of elements in an array of any type
#define RDM_MAX | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
Macro fo taking the max of two arguments of any type
#define RDM_MIN | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
Macro fo taking the min of two arguments of any type
#define RDM_STRINGIFY | ( | data | ) | RDM_STRINGIFY_ (data) |
#define RDM_STRINGIFY_ | ( | data | ) | #data |
#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU) |
Maximum value for uint64_t
#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU) |
Maximum value for uint64_t
#define RDM_UINT64_FMT "%" RDM_64BIT_CODE "u" |
Format string for 64 bit unsigned integer
#define RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
Format string for 64 bit unsigned integer in hexadecimal
#define RDM_UINT64_FMT_SIZE | ( | size | ) | "%" #size RDM_64BIT_CODE "u" |
Format string for 64 bit unsigned integer where size is specified
#define RDM_UINT64_FMT_SIZE_HEX | ( | size | ) | "%" #size RDM_64BIT_CODE "X" |
Format string for 64 bit unsigned integer in hexadecimal where size is specified
#define RDM_UINT64_MAX (18446744073709551615ULL) |
Maximum value for uint64_t
#define RDM_UINT8_MAX ((uint8_t) 0xFFU) |
Maximum value for uint64_t
#define RDM_UNREF | ( | a | ) | ((void) a) |
#define RDM_UNSET | ( | a | ) | = a |
enum RDM_BOOL_T |
enum RDM_COMPARE |
Enumeration for RDM comparison values
Enumerator | |
---|---|
RDM_LT | The first argument is lesser than the second argument |
RDM_EQ | The arguments are equal |
RDM_GT | The first argument is greater than the second argument |