SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Friends | List of all members
sc_dt::scfx_rep Class Reference

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

Public Member Functions

 scfx_rep ()
 
 scfx_rep (int)
 
 scfx_rep (unsigned int)
 
 scfx_rep (long)
 
 scfx_rep (unsigned long)
 
 scfx_rep (double)
 
 scfx_rep (const char *)
 
 scfx_rep (int64)
 
 scfx_rep (uint64)
 
 scfx_rep (const sc_signed &)
 
 scfx_rep (const sc_unsigned &)
 
 scfx_rep (const scfx_rep &)
 
 ~scfx_rep ()
 
void * operator new (std::size_t)
 
void operator delete (void *, std::size_t)
 
void from_string (const char *, int)
 
double to_double () const
 
const char * to_string (sc_numrep, int, sc_fmt, const scfx_params *=0) const
 
void operator= (const scfx_rep &)
 
void lshift (int)
 
void rshift (int)
 
void cast (const scfx_params &, bool &, bool &)
 
bool is_neg () const
 
bool is_zero () const
 
bool is_nan () const
 
bool is_inf () const
 
bool is_normal () const
 
void set_zero (int=1)
 
void set_nan ()
 
void set_inf (int)
 
bool get_bit (int) const
 
bool set (int, const scfx_params &)
 
bool clear (int, const scfx_params &)
 
bool get_slice (int, int, const scfx_params &, sc_bv_base &) const
 
bool set_slice (int, int, const scfx_params &, const sc_bv_base &)
 
void print (::std::ostream &) const
 
void dump (::std::ostream &) const
 
void get_type (int &, int &, sc_enc &) const
 
bool rounding_flag () const
 

Friends

void multiply (scfx_rep &, const scfx_rep &, const scfx_rep &, int)
 
scfx_repneg_scfx_rep (const scfx_rep &)
 
scfx_repmult_scfx_rep (const scfx_rep &, const scfx_rep &, int)
 
scfx_repdiv_scfx_rep (const scfx_rep &, const scfx_rep &, int)
 
scfx_repadd_scfx_rep (const scfx_rep &, const scfx_rep &, int)
 
scfx_repsub_scfx_rep (const scfx_rep &, const scfx_rep &, int)
 
scfx_replsh_scfx_rep (const scfx_rep &, int)
 
scfx_reprsh_scfx_rep (const scfx_rep &, int)
 
int cmp_scfx_rep (const scfx_rep &, const scfx_rep &)
 
scfx_repquantization_scfx_rep (const scfx_rep &, const scfx_params &, bool &)
 
scfx_repoverflow_scfx_rep (const scfx_rep &, const scfx_params &, bool &)
 
void align (const scfx_rep &, const scfx_rep &, int &, int &, scfx_mant_ref &, scfx_mant_ref &)
 
int compare_msw (const scfx_rep &, const scfx_rep &)
 
int compare_msw_ff (const scfx_rep &lhs, const scfx_rep &rhs)
 
void print_dec (scfx_string &, const scfx_rep &, int, sc_fmt)
 
void print_other (scfx_string &, const scfx_rep &, sc_numrep, int, sc_fmt, const scfx_params *)
 
int compare_abs (const scfx_rep &, const scfx_rep &)
 

Detailed Description

Definition at line 172 of file scfx_rep.h.

Constructor & Destructor Documentation

sc_dt::scfx_rep::scfx_rep ( )
sc_dt::scfx_rep::scfx_rep ( int  )
explicit
sc_dt::scfx_rep::scfx_rep ( unsigned  int)
explicit
sc_dt::scfx_rep::scfx_rep ( long  )
explicit
sc_dt::scfx_rep::scfx_rep ( unsigned  long)
explicit
sc_dt::scfx_rep::scfx_rep ( double  )
explicit
sc_dt::scfx_rep::scfx_rep ( const char *  s)
inlineexplicit

Definition at line 370 of file scfx_rep.h.

sc_dt::scfx_rep::scfx_rep ( int64  )
explicit
sc_dt::scfx_rep::scfx_rep ( uint64  )
explicit
sc_dt::scfx_rep::scfx_rep ( const sc_signed )
explicit
sc_dt::scfx_rep::scfx_rep ( const sc_unsigned )
explicit
sc_dt::scfx_rep::scfx_rep ( const scfx_rep )
sc_dt::scfx_rep::~scfx_rep ( )
inline

Definition at line 381 of file scfx_rep.h.

Member Function Documentation

void sc_dt::scfx_rep::cast ( const scfx_params ,
bool &  ,
bool &   
)
bool sc_dt::scfx_rep::clear ( int  ,
const scfx_params  
)
void sc_dt::scfx_rep::dump ( ::std::ostream &  ) const
void sc_dt::scfx_rep::from_string ( const char *  ,
int   
)
bool sc_dt::scfx_rep::get_bit ( int  ) const
bool sc_dt::scfx_rep::get_slice ( int  ,
int  ,
const scfx_params ,
sc_bv_base  
) const
void sc_dt::scfx_rep::get_type ( int &  ,
int &  ,
sc_enc  
) const
bool sc_dt::scfx_rep::is_inf ( ) const
inline

Definition at line 478 of file scfx_rep.h.

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

Definition at line 471 of file scfx_rep.h.

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

Definition at line 448 of file scfx_rep.h.

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

Definition at line 485 of file scfx_rep.h.

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

Definition at line 455 of file scfx_rep.h.

void sc_dt::scfx_rep::lshift ( int  )
void sc_dt::scfx_rep::operator delete ( void *  ,
std::size_t   
)
void* sc_dt::scfx_rep::operator new ( std::size_t  )
void sc_dt::scfx_rep::operator= ( const scfx_rep f)
inline

Definition at line 389 of file scfx_rep.h.

void sc_dt::scfx_rep::print ( ::std::ostream &  ) const
bool sc_dt::scfx_rep::rounding_flag ( ) const
inline

Definition at line 514 of file scfx_rep.h.

void sc_dt::scfx_rep::rshift ( int  )
bool sc_dt::scfx_rep::set ( int  ,
const scfx_params  
)
void sc_dt::scfx_rep::set_inf ( int  sign)
inline

Definition at line 359 of file scfx_rep.h.

void sc_dt::scfx_rep::set_nan ( )
inline

Definition at line 351 of file scfx_rep.h.

bool sc_dt::scfx_rep::set_slice ( int  ,
int  ,
const scfx_params ,
const sc_bv_base  
)
void sc_dt::scfx_rep::set_zero ( int  sign = 1)
inline

Definition at line 341 of file scfx_rep.h.

double sc_dt::scfx_rep::to_double ( ) const
const char* sc_dt::scfx_rep::to_string ( sc_numrep  ,
int  ,
sc_fmt  ,
const scfx_params = 0 
) const

Friends And Related Function Documentation

scfx_rep* add_scfx_rep ( const scfx_rep ,
const scfx_rep ,
int   
)
friend
void align ( const scfx_rep ,
const scfx_rep ,
int &  ,
int &  ,
scfx_mant_ref ,
scfx_mant_ref  
)
friend
int cmp_scfx_rep ( const scfx_rep ,
const scfx_rep  
)
friend
int compare_abs ( const scfx_rep ,
const scfx_rep  
)
friend
int compare_msw ( const scfx_rep ,
const scfx_rep  
)
friend
int compare_msw_ff ( const scfx_rep lhs,
const scfx_rep rhs 
)
friend
scfx_rep* div_scfx_rep ( const scfx_rep ,
const scfx_rep ,
int   
)
friend
scfx_rep* lsh_scfx_rep ( const scfx_rep a,
int  b 
)
friend
scfx_rep* mult_scfx_rep ( const scfx_rep a,
const scfx_rep b,
int  max_wl = SC_DEFAULT_MAX_WL_ 
)
friend
void multiply ( scfx_rep ,
const scfx_rep ,
const scfx_rep ,
int   
)
friend
scfx_rep* neg_scfx_rep ( const scfx_rep a)
friend
scfx_rep* overflow_scfx_rep ( const scfx_rep a,
const scfx_params params,
bool &  o_flag 
)
friend

Definition at line 503 of file scfx_rep.h.

void print_dec ( scfx_string ,
const scfx_rep ,
int  ,
sc_fmt   
)
friend
void print_other ( scfx_string ,
const scfx_rep ,
sc_numrep  ,
int  ,
sc_fmt  ,
const scfx_params  
)
friend
scfx_rep* quantization_scfx_rep ( const scfx_rep a,
const scfx_params params,
bool &  q_flag 
)
friend

Definition at line 492 of file scfx_rep.h.

scfx_rep* rsh_scfx_rep ( const scfx_rep a,
int  b 
)
friend
scfx_rep* sub_scfx_rep ( const scfx_rep ,
const scfx_rep ,
int   
)
friend

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