Defines | |
| #define | TYPECODE(maintype, subtype) (((maintype)<<16) | (subtype)) |
| #define | MAINTYPE(typecode) (((typecode)>>16) & 0xFF) |
| #define | SUBTYPE(typecode) ((typecode) & 0xFF) |
| #define | ITOF(x) ((x)<<16) |
| #define | FTOI(x) ((x)>>16) |
| #define | MAX(x, y) (((x)>=(y))?(x):(y)) |
| #define | MIN(x, y) (((x)<=(y))?(x):(y)) |
| #define | ABS(x) ((x)<0?(-(x)):(x)) |
|
|
Computes the absolute value of a number.
|
|
|
Converts a FIXED into an integer.
|
|
|
Converts an integer into a FIXED.
|
|
|
Get the maintype from a joined typecode. |
|
|
Computes the maximum of x and y.
|
|
|
Computes the minimum of x and y.
|
|
|
Get the subtype from a joined typecode. |
|
|
Connect maintype and subtype to one code. |
1.2.17