SPUC  3.0
Public Types | Public Member Functions | Public Attributes | List of all members
SPUC::vlog Class Reference

Logarithmic number system class. More...

#include <vlog.h>

Public Types

typedef vlog self
 

Public Member Functions

void reset ()
 
 vlog ()
 
 vlog (const int_s &y)
 
 vlog (const int &y)
 
 vlog (const long &y)
 
void from_double (double y)
 
double to_double (self y)
 
double to_double ()
 
 vlog (const double &y)
 
self operator= (const self &y)
 
self operator= (const long &y)
 
self operator= (const int &y)
 
self operator= (const double &y)
 
self operator+= (self r)
 
self operator-= (self r)
 
self operator*= (self r)
 
self operator/= (self r)
 
long operator~ ()
 
bool operator== (self r)
 
bool operator!= (long r)
 
bool operator< (self r)
 
bool operator<= (self r)
 
bool operator> (self r)
 
bool operator>= (self r)
 
bool operator< (double r)
 
bool operator< (float r)
 
bool operator< (int r)
 
bool operator< (long r)
 
bool operator> (double r)
 
bool operator> (float r)
 
bool operator> (int r)
 
bool operator> (long r)
 
bool operator<= (double r)
 
bool operator<= (float r)
 
bool operator<= (int r)
 
bool operator<= (long r)
 
bool operator>= (double r)
 
bool operator>= (float r)
 
bool operator>= (int r)
 
bool operator>= (long r)
 
 operator double () const
 
 operator float () const
 
 operator long () const
 
 operator int () const
 

Public Attributes

long sign
 
long frac
 
long intlog
 
long frac_bits
 

Detailed Description

Logarithmic number system class.

Author
Tony Kirke

Member Typedef Documentation

Constructor & Destructor Documentation

SPUC::vlog::vlog ( )
inline

References reset().

Here is the call graph for this function:

SPUC::vlog::vlog ( const int_s &  y)
inline

References reset().

Here is the call graph for this function:

SPUC::vlog::vlog ( const int &  y)
inline

References reset().

Here is the call graph for this function:

SPUC::vlog::vlog ( const long &  y)
inline

References reset().

Here is the call graph for this function:

SPUC::vlog::vlog ( const double &  y)
inline

References from_double(), and reset().

Here is the call graph for this function:

Member Function Documentation

void SPUC::vlog::from_double ( double  y)
inline

References SPUC::ABS(), intlog, log2, and SPUC_TOLONG.

Referenced by operator=(), and vlog().

Here is the call graph for this function:

SPUC::vlog::operator double ( ) const
inline

References intlog.

SPUC::vlog::operator float ( ) const
inline

References intlog.

SPUC::vlog::operator int ( ) const
inline

References intlog.

SPUC::vlog::operator long ( ) const
inline

References intlog.

bool SPUC::vlog::operator!= ( long  r)
inline
self SPUC::vlog::operator*= ( self  r)
inline

References to_double().

Here is the call graph for this function:

self SPUC::vlog::operator+= ( self  r)
inline

References to_double().

Here is the call graph for this function:

self SPUC::vlog::operator-= ( self  r)
inline

References to_double().

Here is the call graph for this function:

self SPUC::vlog::operator/= ( self  r)
inline

References to_double().

Here is the call graph for this function:

bool SPUC::vlog::operator< ( self  r)
inline
bool SPUC::vlog::operator< ( double  r)
inline
bool SPUC::vlog::operator< ( float  r)
inline
bool SPUC::vlog::operator< ( int  r)
inline
bool SPUC::vlog::operator< ( long  r)
inline
bool SPUC::vlog::operator<= ( self  r)
inline
bool SPUC::vlog::operator<= ( double  r)
inline
bool SPUC::vlog::operator<= ( float  r)
inline
bool SPUC::vlog::operator<= ( int  r)
inline
bool SPUC::vlog::operator<= ( long  r)
inline
self SPUC::vlog::operator= ( const self y)
inline

References frac.

self SPUC::vlog::operator= ( const long &  y)
inline

References intlog.

self SPUC::vlog::operator= ( const int &  y)
inline

References intlog.

self SPUC::vlog::operator= ( const double &  y)
inline

References from_double().

Here is the call graph for this function:

bool SPUC::vlog::operator== ( self  r)
inline
bool SPUC::vlog::operator> ( self  r)
inline
bool SPUC::vlog::operator> ( double  r)
inline
bool SPUC::vlog::operator> ( float  r)
inline
bool SPUC::vlog::operator> ( int  r)
inline
bool SPUC::vlog::operator> ( long  r)
inline
bool SPUC::vlog::operator>= ( self  r)
inline
bool SPUC::vlog::operator>= ( double  r)
inline
bool SPUC::vlog::operator>= ( float  r)
inline
bool SPUC::vlog::operator>= ( int  r)
inline
bool SPUC::vlog::operator>= ( long  r)
inline
long SPUC::vlog::operator~ ( void  )
inline
void SPUC::vlog::reset ( void  )
inline

References FLP_FRAC_BITS.

Referenced by vlog().

double SPUC::vlog::to_double ( self  y)
inline
double SPUC::vlog::to_double ( void  )
inline

References intlog.

Referenced by operator*=(), operator+=(), operator-=(), and operator/=().

Member Data Documentation

long SPUC::vlog::frac
long SPUC::vlog::frac_bits
long SPUC::vlog::intlog
long SPUC::vlog::sign

Referenced by SPUC::operator*(), and SPUC::operator/().


The documentation for this class was generated from the following file: