Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opcodeqint.h File Reference

Go to the source code of this file.

Macros

#define QRound(x)   (int ((x) + ((x < 0) ? -0.5 : +0.5)))
 
#define QInt(x)   (int (x))
 
#define QInt8(x)   (int ((x)*256.))
 
#define QInt16(x)   (int ((x)*65536.))
 
#define QInt24(x)   (int ((x)*16777216.))
 

Macro Definition Documentation

#define QInt (   x)    (int (x))

Definition at line 202 of file opcodeqint.h.

#define QInt16 (   x)    (int ((x)*65536.))

Definition at line 204 of file opcodeqint.h.

#define QInt24 (   x)    (int ((x)*16777216.))

Definition at line 205 of file opcodeqint.h.

#define QInt8 (   x)    (int ((x)*256.))

Definition at line 203 of file opcodeqint.h.

#define QRound (   x)    (int ((x) + ((x < 0) ? -0.5 : +0.5)))

Definition at line 201 of file opcodeqint.h.