![]() |
![]()
| ![]() |
![]()
NAMEitofix - Converts an integer to fixed point. Allegro game programming library. SYNOPSIS#include <allegro.h> fixed itofix(int x); DESCRIPTIONConverts an integer to fixed point. This is the same thing as x<<16. Remember that overflows (trying to convert an integer greater than 32767) and underflows (trying to convert an integer lesser than -32768) are not detected even in debug builds! The values simply "wrap around". Example:
RETURN VALUEReturns the value of the integer converted to fixed point ignoring overflows. SEE ALSOfixtoi(3), ftofix(3), fixtof(3), ex12bit(3), ex3buf(3), ex3d(3), exblend(3), excustom(3), exfixed(3), exlights(3), exspline(3), exsprite(3), exstars(3)
|