rdmbcdtypes.h File Reference
Header for Binary-coded decimal (BCD) types. More...
#include "psptypes.h"
Include dependency graph for rdmbcdtypes.h:
This graph shows which files directly or indirectly include this file:
Data Structures |
|
struct | RDM_BCD_T |
The RaimaDB 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 RaimaDB BCD in bytes given by its precission. More... |
|
#define | RDM_BCD_MAXPRECISION 32 |
The max presission for a RaimaDB 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 RaimaDB BCD. More... |
|
Detailed Description
Header for Binary-coded decimal (BCD) types.
Macro Definition Documentation
RDM_BCD_MAXPRECISION
#define RDM_BCD_MAXPRECISION 32 |
The max presission for a RaimaDB BCD.
RDM_BCD_MAXSCALE
#define RDM_BCD_MAXSCALE 32 |
RDM_BCDLEN
#define RDM_BCDLEN | ( | prec | ) | ((uint16_t) (offsetof (RDM_BCD_T, data) + (prec) + 1)) |
The length of a RaimaDB BCD in bytes given by its precission.
Enumeration Type Documentation
RDM_BCD_ROUNDING_MODE
Rounding modes for RaimaDB BCD.
RDM_BCD_ROUNDING_MODE
Rounding modes for RaimaDB BCD.
Definition: rdmbcdtypes.h:26
@ RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN
Definition: rdmbcdtypes.h:27
@ RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO
Definition: rdmbcdtypes.h:44