Header for Binary-coded decimal (BCD) types. More...
#include "psptypes.h"
Data Structures | |
struct | RDM_BCD_T |
The RDM Binary Coded Decimal (BCD) data structure. More... | |
Macros | |
#define | RDM_BCDLEN(prec) ((uint16_t) (offsetof (RDM_BCD_T, data) + (prec) + 1)) |
The length of a RDM BCD in bytes given by its precission. More... | |
#define | RDM_BCD_MAXPRECISION 32 |
The max presission for a RDM BCD. More... | |
#define | RDM_BCD_MAXSCALE 32 |
Enumerations | |
enum | RDM_BCD_ROUNDING_MODE { RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN, RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO, RDM_BCD_ROUND_UP, RDM_BCD_ROUND_DOWN, RDM_BCD_ROUND_TOWARDS_ZERO } |
Rounding modes for RDM BCD. More... | |
Header for Binary-coded decimal (BCD) types.
#define RDM_BCD_MAXPRECISION 32 |
The max presission for a RDM BCD.
#define RDM_BCD_MAXSCALE 32 |
#define RDM_BCDLEN | ( | prec | ) | ((uint16_t) (offsetof (RDM_BCD_T, data) + (prec) + 1)) |
The length of a RDM BCD in bytes given by its precission.
Rounding modes for RDM BCD.