Public Types |
typedef signed long | fixed_t |
enum | { MASK = ((1L << BITS) -1)
} |
Public Methods |
| FixedT () |
| FixedT (double value) |
FixedT& | operator= (const FixedT& rhs) |
FixedT& | operator= (double value) |
FixedT& | operator- () |
FixedT& | operator *= (const FixedT& rhs) |
FixedT& | operator/= (const FixedT& rhs) |
FixedT& | operator *= (const unsigned long& rhs) |
FixedT& | operator+= (const FixedT& rhs) |
FixedT& | operator-= (const FixedT& rhs) |
FixedT | operator- (const FixedT& rhs) |
FixedT | operator+ (const FixedT& rhs) |
FixedT | operator * (const FixedT& rhs) |
FixedT | operator/ (const FixedT& rhs) |
bool | operator== (const FixedT& rhs) const |
bool | operator< (const FixedT& rhs) const |
FixedT | operator% (const FixedT& rhs) |
FixedT | operator% (unsigned long rhs) |
FixedT& | operator%= (const FixedT& rhs) |
FixedT | fractional () const |
long | c_long () const |
double | c_double () const |
BITS is the number of bits to use to represent the fractional part. BITS should be positive despite the fact that it is signed.