al_itofix man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

al_itofix(3)							  al_itofix(3)

NAME
       al_itofix - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro.h>

	      al_fixed al_itofix(int x);

DESCRIPTION
       Converts	 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:

		  al_fixed number;

		  /* This conversion is OK. */
		  number = al_itofix(100);
		  assert(al_fixtoi(number) == 100);

		  number = al_itofix(64000);

		  /* This check will fail in debug builds. */
		  assert(al_fixtoi(number) == 64000);

RETURN VALUE
       Returns the value of the integer	 converted  to	fixed  point  ignoring
       overflows.

SEE ALSO
       al_fixtoi(3), al_ftofix(3), al_fixtof(3).

Allegro reference manual					  al_itofix(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net