SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_dt::sc_fxval_fast Class Reference

Fixed-point value types; limited precision. More...

#include <sysc/datatypes/fx/sc_fxval.h>

Collaboration diagram for sc_dt::sc_fxval_fast:

Public Member Functions

 sc_fxval_fast (sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (int, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (unsigned int, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (long, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (unsigned long, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (float, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (double, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval_fast (const char *, sc_fxval_fast_observer *=0)
 
 sc_fxval_fast (const sc_fxval &, sc_fxval_fast_observer *=0)
 
 sc_fxval_fast (const sc_fxval_fast &, sc_fxval_fast_observer *=0)
 
 sc_fxval_fast (const sc_fxnum &, sc_fxval_fast_observer *=0)
 
 sc_fxval_fast (const sc_fxnum_fast &, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (int64, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (uint64, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (const sc_int_base &, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (const sc_uint_base &, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (const sc_signed &, sc_fxval_fast_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval_fast (const sc_unsigned &, sc_fxval_fast_observer *=0)
 
 ~sc_fxval_fast ()
 
double get_val () const
 
void set_val (double)
 
const sc_fxval_fast operator- () const
 
const sc_fxval_fastoperator+ () const
 
 DECL_BIN_OP_T (/, int64) DECL_BIN_OP_T(/
 
uint64 DECL_BIN_OP_T (/, const sc_int_base &) DECL_BIN_OP_T(/
 
uint64 const sc_uint_baseDECL_BIN_OP_T (/, const sc_signed &) friend const sc_fxval_fast operator<<(const sc_fxval_fast &
 
const sc_fxval_fast operator++ (int)
 
const sc_fxval_fast operator-- (int)
 
sc_fxval_fastoperator++ ()
 
sc_fxval_fastoperator-- ()
 
 operator double () const
 
short to_short () const
 
unsigned short to_ushort () const
 
int to_int () const
 
unsigned int to_uint () const
 
long to_long () const
 
unsigned long to_ulong () const
 
int64 to_int64 () const
 
uint64 to_uint64 () const
 
float to_float () const
 
double to_double () const
 
const std::string to_string () const
 
const std::string to_string (sc_numrep) const
 
const std::string to_string (sc_numrep, bool) const
 
const std::string to_string (sc_fmt) const
 
const std::string to_string (sc_numrep, sc_fmt) const
 
const std::string to_string (sc_numrep, bool, sc_fmt) const
 
const std::string to_dec () const
 
const std::string to_bin () const
 
const std::string to_oct () const
 
const std::string to_hex () const
 
bool is_neg () const
 
bool is_zero () const
 
bool is_nan () const
 
bool is_inf () const
 
bool is_normal () const
 
bool rounding_flag () const
 
void print (::std::ostream &=::std::cout) const
 
void scan (::std::istream &=::std::cin)
 
void dump (::std::ostream &=::std::cout) const
 
bool get_bit (int) const
 

Public Attributes

uint64 const sc_uint_base int
 

Protected Member Functions

sc_fxval_fast_observerobserver () const
 
sc_fxval_fast_observerlock_observer () const
 
void unlock_observer (sc_fxval_fast_observer *) const
 

Static Protected Member Functions

static double from_string (const char *)
 

Friends

class sc_fxnum_fast
 
void neg (sc_fxval_fast &, const sc_fxval_fast &)
 
const sc_fxval_fast operator/ (const sc_fxval_fast &, const sc_fxval_fast &)
 
const sc_fxval_fast operator>> (const sc_fxval_fast &, int)
 
void lshift (sc_fxval_fast &, const sc_fxval_fast &, int)
 
void rshift (sc_fxval_fast &, const sc_fxval_fast &, int)
 

Detailed Description

Fixed-point value types; limited precision.

Fixed-point value type; limited precision.

Definition at line 439 of file sc_fxval.h.

Constructor & Destructor Documentation

◆ sc_fxval_fast() [1/18]

sc_dt::sc_fxval_fast::sc_fxval_fast ( sc_fxval_fast_observer observer_ = 0)
inlineexplicit

Definition at line 1555 of file sc_fxval.h.

◆ sc_fxval_fast() [2/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( int  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [3/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( unsigned  int,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [4/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( long  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [5/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( unsigned  long,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [6/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( float  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [7/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( double  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [8/18]

SCFX_EXPLICIT_ sc_dt::sc_fxval_fast::sc_fxval_fast ( const char *  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [9/18]

sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_fxval ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [10/18]

sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_fxval_fast a,
sc_fxval_fast_observer observer_ = 0 
)
inline

Definition at line 1564 of file sc_fxval.h.

◆ sc_fxval_fast() [11/18]

sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_fxnum a,
sc_fxval_fast_observer observer_ = 0 
)
inline

Definition at line 4997 of file sc_fxnum.h.

◆ sc_fxval_fast() [12/18]

sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_fxnum_fast a,
sc_fxval_fast_observer observer_ = 0 
)
inline

Definition at line 5008 of file sc_fxnum.h.

◆ sc_fxval_fast() [13/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( int64  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [14/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( uint64  ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [15/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_int_base ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [16/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_uint_base ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [17/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_signed ,
sc_fxval_fast_observer = 0 
)

◆ sc_fxval_fast() [18/18]

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval_fast::sc_fxval_fast ( const sc_unsigned ,
sc_fxval_fast_observer = 0 
)

◆ ~sc_fxval_fast()

sc_dt::sc_fxval_fast::~sc_fxval_fast ( )
inline

Definition at line 1617 of file sc_fxval.h.

Member Function Documentation

◆ DECL_BIN_OP_T() [1/3]

sc_dt::sc_fxval_fast::DECL_BIN_OP_T ( ,
int64   
)

◆ DECL_BIN_OP_T() [2/3]

uint64 sc_dt::sc_fxval_fast::DECL_BIN_OP_T ( ,
const sc_int_base  
)

◆ DECL_BIN_OP_T() [3/3]

uint64 const sc_uint_base& sc_dt::sc_fxval_fast::DECL_BIN_OP_T ( ,
const sc_signed  
) const &

◆ dump()

void sc_dt::sc_fxval_fast::dump ( ::std::ostream &  = ::std::cout) const

◆ from_string()

static double sc_dt::sc_fxval_fast::from_string ( const char *  )
staticprotected

◆ get_bit()

bool sc_dt::sc_fxval_fast::get_bit ( int  ) const

◆ get_val()

double sc_dt::sc_fxval_fast::get_val ( ) const
inline

Definition at line 1626 of file sc_fxval.h.

◆ is_inf()

bool sc_dt::sc_fxval_fast::is_inf ( ) const
inline

Definition at line 2237 of file sc_fxval.h.

◆ is_nan()

bool sc_dt::sc_fxval_fast::is_nan ( ) const
inline

Definition at line 2228 of file sc_fxval.h.

◆ is_neg()

bool sc_dt::sc_fxval_fast::is_neg ( ) const
inline

Definition at line 2210 of file sc_fxval.h.

◆ is_normal()

bool sc_dt::sc_fxval_fast::is_normal ( ) const
inline

Definition at line 2246 of file sc_fxval.h.

◆ is_zero()

bool sc_dt::sc_fxval_fast::is_zero ( ) const
inline

Definition at line 2219 of file sc_fxval.h.

◆ lock_observer()

sc_fxval_fast_observer* sc_dt::sc_fxval_fast::lock_observer ( ) const
protected

◆ observer()

sc_fxval_fast_observer * sc_dt::sc_fxval_fast::observer ( ) const
inlineprotected

Definition at line 1546 of file sc_fxval.h.

◆ operator double()

sc_dt::sc_fxval_fast::operator double ( ) const
inline

Definition at line 2099 of file sc_fxval.h.

◆ operator+()

const sc_fxval_fast & sc_dt::sc_fxval_fast::operator+ ( ) const
inline

Definition at line 1654 of file sc_fxval.h.

◆ operator++() [1/2]

const sc_fxval_fast sc_dt::sc_fxval_fast::operator++ ( int  )
inline

Definition at line 2053 of file sc_fxval.h.

◆ operator++() [2/2]

sc_fxval_fast & sc_dt::sc_fxval_fast::operator++ ( )
inline

Definition at line 2077 of file sc_fxval.h.

◆ operator-()

const sc_fxval_fast sc_dt::sc_fxval_fast::operator- ( ) const
inline

Definition at line 1646 of file sc_fxval.h.

◆ operator--() [1/2]

const sc_fxval_fast sc_dt::sc_fxval_fast::operator-- ( int  )
inline

Definition at line 2065 of file sc_fxval.h.

◆ operator--() [2/2]

sc_fxval_fast & sc_dt::sc_fxval_fast::operator-- ( )
inline

Definition at line 2087 of file sc_fxval.h.

◆ print()

void sc_dt::sc_fxval_fast::print ( ::std::ostream &  = ::std::cout) const

◆ rounding_flag()

bool sc_dt::sc_fxval_fast::rounding_flag ( ) const
inline

Definition at line 2256 of file sc_fxval.h.

◆ scan()

void sc_dt::sc_fxval_fast::scan ( ::std::istream &  = ::std::cin)

◆ set_val()

void sc_dt::sc_fxval_fast::set_val ( double  val_)
inline

Definition at line 1635 of file sc_fxval.h.

◆ to_bin()

const std::string sc_dt::sc_fxval_fast::to_bin ( ) const

◆ to_dec()

const std::string sc_dt::sc_fxval_fast::to_dec ( ) const

◆ to_double()

double sc_dt::sc_fxval_fast::to_double ( ) const
inline

Definition at line 2199 of file sc_fxval.h.

◆ to_float()

float sc_dt::sc_fxval_fast::to_float ( ) const
inline

Definition at line 2191 of file sc_fxval.h.

◆ to_hex()

const std::string sc_dt::sc_fxval_fast::to_hex ( ) const

◆ to_int()

int sc_dt::sc_fxval_fast::to_int ( ) const
inline

Definition at line 2134 of file sc_fxval.h.

◆ to_int64()

int64 sc_dt::sc_fxval_fast::to_int64 ( ) const
inline

Definition at line 2126 of file sc_fxval.h.

◆ to_long()

long sc_dt::sc_fxval_fast::to_long ( ) const
inline

Definition at line 2175 of file sc_fxval.h.

◆ to_oct()

const std::string sc_dt::sc_fxval_fast::to_oct ( ) const

◆ to_short()

short sc_dt::sc_fxval_fast::to_short ( ) const
inline

Definition at line 2110 of file sc_fxval.h.

◆ to_string() [1/6]

const std::string sc_dt::sc_fxval_fast::to_string ( ) const

◆ to_string() [2/6]

const std::string sc_dt::sc_fxval_fast::to_string ( sc_numrep  ) const

◆ to_string() [3/6]

const std::string sc_dt::sc_fxval_fast::to_string ( sc_numrep  ,
bool   
) const

◆ to_string() [4/6]

const std::string sc_dt::sc_fxval_fast::to_string ( sc_fmt  ) const

◆ to_string() [5/6]

const std::string sc_dt::sc_fxval_fast::to_string ( sc_numrep  ,
sc_fmt   
) const

◆ to_string() [6/6]

const std::string sc_dt::sc_fxval_fast::to_string ( sc_numrep  ,
bool  ,
sc_fmt   
) const

◆ to_uint()

unsigned int sc_dt::sc_fxval_fast::to_uint ( ) const
inline

Definition at line 2142 of file sc_fxval.h.

◆ to_uint64()

uint64 sc_dt::sc_fxval_fast::to_uint64 ( ) const
inline

Definition at line 2150 of file sc_fxval.h.

◆ to_ulong()

unsigned long sc_dt::sc_fxval_fast::to_ulong ( ) const
inline

Definition at line 2183 of file sc_fxval.h.

◆ to_ushort()

unsigned short sc_dt::sc_fxval_fast::to_ushort ( ) const
inline

Definition at line 2118 of file sc_fxval.h.

◆ unlock_observer()

void sc_dt::sc_fxval_fast::unlock_observer ( sc_fxval_fast_observer ) const
protected

Friends And Related Function Documentation

◆ lshift

void lshift ( sc_fxval_fast c,
const sc_fxval_fast a,
int  b 
)
friend

Definition at line 1845 of file sc_fxval.h.

◆ neg

void neg ( sc_fxval_fast c,
const sc_fxval_fast a 
)
friend

Definition at line 1665 of file sc_fxval.h.

◆ operator/

const sc_fxval_fast operator/ ( const sc_fxval_fast a,
const sc_fxval_fast b 
)
friend

Definition at line 1731 of file sc_fxval.h.

◆ operator>>

const sc_fxval_fast operator>> ( const sc_fxval_fast a,
int  b 
)
friend

Definition at line 1771 of file sc_fxval.h.

◆ rshift

void rshift ( sc_fxval_fast c,
const sc_fxval_fast a,
int  b 
)
friend

Definition at line 1854 of file sc_fxval.h.

◆ sc_fxnum_fast

friend class sc_fxnum_fast
friend

Definition at line 442 of file sc_fxval.h.

Member Data Documentation

◆ int

uint64 const sc_uint_base sc_dt::sc_fxval_fast::int

Definition at line 547 of file sc_fxval.h.


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