![]() |
![]()
| ![]() |
![]()
NAMEal_itofix - Allegro 5 API SYNOPSIS
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 ALSOal_fixtoi(3), al_ftofix(3), al_fixtof(3).
|