GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AL_ITOFIX (3)

NAME

al_itofix - Allegro 5 API

CONTENTS

Synopsis
Description
Return Value
See Also

SYNOPSIS

C]
#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:
C]
    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).

Search for    or go to Top of page |  Section 3 |  Main Index


Allegro reference manual AL_ITOFIX (3)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.