SPUC  3.0
Classes | Namespaces | Macros | Functions
vlog.h File Reference

Logarithmic number system class. More...

#include <iostream>
#include <spuc/spuc_defines.h>
#include <cmath>
#include <spuc/int_s.h>
Include dependency graph for vlog.h:
This graph shows which files directly or indirectly include this file:

Classes

class  SPUC::vlog
 Logarithmic number system class. More...
 

Namespaces

 SPUC
 fixed point types: spuc_fixed,spuc_ufixed,spuc_int,spuc_uint
 

Macros

#define FLP_FRAC_BITS   9
 
#define ILOG_MULTOP(T1, T2, RESULT)
 

Functions

std::ostream & SPUC::operator<< (std::ostream &os, vlog r)
 
std::istream & SPUC::operator>> (std::istream &is, vlog r)
 
vlog SPUC::operator- (const vlog &r)
 
vlog SPUC::operator+ (const vlog &r, const vlog &l)
 
vlog SPUC::operator- (const vlog &r, const vlog &l)
 
vlog SPUC::operator* (const vlog &r, const vlog &l)
 
vlog SPUC::operator/ (const vlog &r, const vlog &l)
 
vlog SPUC::operator<< (const vlog &r, const long shift)
 
vlog SPUC::operator>> (const vlog &r, const long shift)
 

Detailed Description

Logarithmic number system class.

Macro Definition Documentation

#define FLP_FRAC_BITS   9

Referenced by SPUC::vlog::reset().

#define ILOG_MULTOP (   T1,
  T2,
  RESULT 
)
Value:
RESULT inline operator +(T1 r, T2 l) { return(r+(RESULT)l); } \
RESULT inline operator +(T2 r, T1 l) { return(l+(RESULT)r); } \
RESULT inline operator -(T1 r, T2 l) { return(r-(RESULT)l); } \
RESULT inline operator -(T2 r, T1 l) { return((RESULT)r-l); } \
RESULT inline operator /(T1 r, T2 l) { return(r/(RESULT)l); } \
RESULT inline operator /(T2 r, T1 l) { return(l/(RESULT)r); } \
RESULT inline operator *(T1 r, T2 l) { return(r*(RESULT)l); } \
RESULT inline operator *(T2 r, T1 l) { return(l*(RESULT)r); }
vlog operator/(const vlog &r, const vlog &l)
Definition: vlog.h:227
vlog operator-(const vlog &r, const vlog &l)
Definition: vlog.h:200
vlog operator*(const vlog &r, const vlog &l)
Definition: vlog.h:209
vlog operator+(const vlog &r, const vlog &l)
Definition: vlog.h:191