Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

Macro Definitions


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))

Define Documentation

#define ABS      ((x)<0?(-(x)):(x))
 

Computes the absolute value of a number.

#define FTOI      ((x)>>16)
 

Converts a FIXED into an integer.

#define ITOF      ((x)<<16)
 

Converts an integer into a FIXED.

#define MAINTYPE typecode       (((typecode)>>16) & 0xFF)
 

Get the maintype from a joined typecode.

#define MAX x,
     (((x)>=(y))?(x):(y))
 

Computes the maximum of x and y.

#define MIN x,
     (((x)<=(y))?(x):(y))
 

Computes the minimum of x and y.

#define SUBTYPE typecode       ((typecode) & 0xFF)
 

Get the subtype from a joined typecode.

#define TYPECODE maintype,
subtype       (((maintype)<<16) | (subtype))
 

Connect maintype and subtype to one code.


Generated on Mon Aug 26 18:26:37 2002 for X² KC by doxygen1.2.17