22 #ifndef __Fixed_hpp_incl__ 23 #define __Fixed_hpp_incl__ 36 #define _LT LITERAL( long, *this ) // Long (this) 37 #define _LL(x) LITERAL( long, x ) // Literal long 38 #define _F1 (1 << 16) // Fixed integer 1 42 Fixed(
const float val ) { *
this = val; }
46 operator float()
const {
return float(_LT) / _F1; }
85 #endif//ndef __Fixed_hpp_incl__ 86 #endif//def __cplusplus Fixed & operator/=(const short rhs)
Fixed & operator=(const short val)
Fixed operator %(const Fixed &rhs) const
Fixed & operator *=(const short rhs)
Fixed & operator+=(const short rhs)
Fixed operator -(const Fixed &rhs) const
Fixed operator+(const Fixed &rhs) const
Fixed & operator %=(const short rhs)
Fixed operator *(const Fixed &rhs) const
Common include; Added types, small "ubiquitous" utilities, et c.
Fixed operator/(const Fixed &rhs) const
Fixed & operator -=(const short rhs)