libcrtxy fixed-point
[The CRT X-Y library (libcrtxy)]


Modules

 Fixed-point math functions.

Defines

#define XY_FIXED_SHIFT   16
 How much to shift ints to get a fixed-point value.
#define XY_FIXED_SHIFT_HALF   8
 For half-shift during mult & divide macros.
#define XY_FIXED_ONE   (1 << XY_FIXED_SHIFT)
 Quick way to get '1' as an XY_fixed.
#define XY_FIXED_HALF   (1 << (XY_FIXED_SHIFT - 1))
 Quick way to get '0.5' as an XY_fixed.
#define XY_FIXED_MAX   0x7FFFFFFF
 Maximum value an XY_fixed can hold.
#define XY_FIXED_MIN   -(0x80000000)
 Minimum value an XY_fixed can hold.
#define XY_FIXED_NAN   XY_FIXED_MAX
 Not-a-number (NAN), occurs when you divide by zero.

Typedefs

typedef Sint32 XY_fixed
 XY_fixed - libcrtxy fixed-point type.

Define Documentation

#define XY_FIXED_SHIFT   16

How much to shift ints to get a fixed-point value.

#define XY_FIXED_SHIFT_HALF   8

For half-shift during mult & divide macros.

#define XY_FIXED_ONE   (1 << XY_FIXED_SHIFT)

Quick way to get '1' as an XY_fixed.

#define XY_FIXED_HALF   (1 << (XY_FIXED_SHIFT - 1))

Quick way to get '0.5' as an XY_fixed.

#define XY_FIXED_MAX   0x7FFFFFFF

Maximum value an XY_fixed can hold.

#define XY_FIXED_MIN   -(0x80000000)

Minimum value an XY_fixed can hold.

#define XY_FIXED_NAN   XY_FIXED_MAX

Not-a-number (NAN), occurs when you divide by zero.


Typedef Documentation

typedef Sint32 XY_fixed

XY_fixed - libcrtxy fixed-point type.


Generated on Tue Sep 2 23:45:36 2008 for libcrtxy by  doxygen 1.5.5