Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

FixPoint.i File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  FixPoint

Defines

#define FIXPOINT_BITS   32
#define FIXPOINT_SIGN   (1<<(FIXPOINT_BITS-1))
#define FixNo(n)   (FixPoint)((int)(n*(1<<FIXPOINT_PREC)))

Functions

int fixmult (int x, int y)
int intmult (int x, int y)
int fixsquare (int x)
int fixsqrt (int x)
int fixdiv (int x, int y)
FixPoint operator+ (int x, FixPoint y)
FixPoint operator- (int x, FixPoint y)
FixPoint operator * (int x, FixPoint y)
bool operator== (int x, FixPoint y)
bool operator!= (int x, FixPoint y)
bool operator< (int x, FixPoint y)
bool operator<= (int x, FixPoint y)
bool operator> (int x, FixPoint y)
bool operator>= (int x, FixPoint y)


Define Documentation

#define FixNo  )     (FixPoint)((int)(n*(1<<FIXPOINT_PREC)))
 

Definition at line 362 of file FixPoint.i.

Referenced by DigitalRenderer::calc_filter(), DigitalRenderer::DigitalRenderer(), DigitalRenderer::InitFixSinTab(), and DigitalRenderer::Reset().

#define FIXPOINT_BITS   32
 

Definition at line 13 of file FixPoint.i.

Referenced by fixsqrt().

#define FIXPOINT_SIGN   (1<<(FIXPOINT_BITS-1))
 

Definition at line 15 of file FixPoint.i.

Referenced by fixdiv(), fixmult(), fixsquare(), and intmult().


Function Documentation

int fixdiv int  x,
int  y
[inline, static]
 

Definition at line 118 of file FixPoint.i.

References FIXPOINT_PREC, and FIXPOINT_SIGN.

Referenced by FixPoint::operator/(), and FixPoint::operator/=().

int fixmult int  x,
int  y
[inline, static]
 

Definition at line 23 of file FixPoint.i.

References FIXPOINT_PREC, and FIXPOINT_SIGN.

Referenced by FixPoint::operator *(), and FixPoint::operator *=().

int fixsqrt int  x  )  [inline, static]
 

Definition at line 97 of file FixPoint.i.

References FIXPOINT_BITS, FIXPOINT_PREC, and fixsquare().

Referenced by FixPoint::sqrt().

int fixsquare int  x  )  [inline, static]
 

Definition at line 81 of file FixPoint.i.

References FIXPOINT_PREC, and FIXPOINT_SIGN.

Referenced by fixsqrt(), and FixPoint::sqr().

int intmult int  x,
int  y
[inline, static]
 

Definition at line 47 of file FixPoint.i.

References FIXPOINT_PREC, and FIXPOINT_SIGN.

Referenced by FixPoint::imul().

FixPoint operator * int  x,
FixPoint  y
[inline]
 

Definition at line 340 of file FixPoint.i.

References FixPoint::Value().

bool operator!= int  x,
FixPoint  y
[inline]
 

Definition at line 346 of file FixPoint.i.

References FixPoint::Value().

FixPoint operator+ int  x,
FixPoint  y
[inline]
 

Definition at line 336 of file FixPoint.i.

References FIXPOINT_PREC, and FixPoint::Value().

FixPoint operator- int  x,
FixPoint  y
[inline]
 

Definition at line 338 of file FixPoint.i.

References FIXPOINT_PREC, and FixPoint::Value().

bool operator< int  x,
FixPoint  y
[inline]
 

Definition at line 348 of file FixPoint.i.

References FixPoint::Value().

bool operator<= int  x,
FixPoint  y
[inline]
 

Definition at line 350 of file FixPoint.i.

References FixPoint::Value().

bool operator== int  x,
FixPoint  y
[inline]
 

Definition at line 344 of file FixPoint.i.

References FixPoint::Value().

bool operator> int  x,
FixPoint  y
[inline]
 

Definition at line 352 of file FixPoint.i.

References FixPoint::Value().

bool operator>= int  x,
FixPoint  y
[inline]
 

Definition at line 354 of file FixPoint.i.

References FixPoint::Value().


Generated on Tue Feb 8 04:10:05 2005 for E32frodo by doxygen 1.3.3