HPGCC3 Documentation 3.0 R003
|
Functions | |
SAT_OBJECT | sat3_createbint_int (SAT_OBJECT where, int value) |
Create a system bint from an int. | |
int | sat3_convertbint_int (SAT_OBJECT bint) |
Convert a system bint into a 32-bit int. | |
unsigned int | sat3_convertbint_uint (SAT_OBJECT bint) |
Convert a system bint into a 32-bit unsigned integer. |
This group includes all functions used to create/convert bints.
int sat3_convertbint_int | ( | SAT_OBJECT | bint | ) |
Convert a system bint into a 32-bit int.
This function converts a sysRPL BINT object to an int.
bint | A SAT_OBJECT bint number. |
unsigned int sat3_convertbint_uint | ( | SAT_OBJECT | bint | ) |
Convert a system bint into a 32-bit unsigned integer.
This function converts a sysRPL BINT object to an (unsigned int).
bint | A SAT_OBJECT bint number. |
SAT_OBJECT sat3_createbint_int | ( | SAT_OBJECT | where, |
int | value | ||
) |
Create a system bint from an int.
This function creates a BINT object (20-bit integer sysRPL BINT) from a 32-bit integer.
where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
value | Initial value to assign to the newly created bint. Only the lower 20-bits are used, the rest is ignored. |