gem5
v20.1.0.0
|
#include <sc_fxval.hh>
Public Member Functions | |
sc_fxval (scfx_rep *) | |
sc_fxval (sc_fxval_observer *=0) | |
sc_fxval (int, sc_fxval_observer *=0) | |
sc_fxval (unsigned int, sc_fxval_observer *=0) | |
sc_fxval (long, sc_fxval_observer *=0) | |
sc_fxval (unsigned long, sc_fxval_observer *=0) | |
sc_fxval (float, sc_fxval_observer *=0) | |
sc_fxval (double, sc_fxval_observer *=0) | |
sc_fxval (const char *, sc_fxval_observer *=0) | |
sc_fxval (const sc_fxval &, sc_fxval_observer *=0) | |
sc_fxval (const sc_fxval_fast &, sc_fxval_observer *=0) | |
sc_fxval (const sc_fxnum &, sc_fxval_observer *=0) | |
sc_fxval (const sc_fxnum_fast &, sc_fxval_observer *=0) | |
sc_fxval (int64, sc_fxval_observer *=0) | |
sc_fxval (uint64, sc_fxval_observer *=0) | |
sc_fxval (const sc_int_base &, sc_fxval_observer *=0) | |
sc_fxval (const sc_uint_base &, sc_fxval_observer *=0) | |
sc_fxval (const sc_signed &, sc_fxval_observer *=0) | |
sc_fxval (const sc_unsigned &, sc_fxval_observer *=0) | |
~sc_fxval () | |
const scfx_rep * | get_rep () const |
void | set_rep (scfx_rep *) |
const sc_fxval | operator- () const |
const sc_fxval & | operator+ () const |
const sc_fxval | operator++ (int) |
const sc_fxval | operator-- (int) |
sc_fxval & | operator++ () |
sc_fxval & | operator-- () |
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 |
Protected Member Functions | |
sc_fxval_observer * | observer () const |
sc_fxval_observer * | lock_observer () const |
void | unlock_observer (sc_fxval_observer *) const |
void | get_type (int &, int &, sc_enc &) const |
const sc_fxval | quantization (const scfx_params &, bool &) const |
const sc_fxval | overflow (const scfx_params &, bool &) const |
Private Attributes | |
scfx_rep * | m_rep |
sc_fxval_observer * | m_observer |
Friends | |
class | sc_fxnum |
void | neg (sc_fxval &, const sc_fxval &) |
const friend sc_fxval | operator/ (const sc_fxval &, const sc_fxval &) |
const friend sc_fxval | operator<< (const sc_fxval &, int) |
const friend sc_fxval | operator>> (const sc_fxval &, int) |
void | lshift (sc_fxval &, const sc_fxval &, int) |
void | rshift (sc_fxval &, const sc_fxval &, int) |
Definition at line 86 of file sc_fxval.hh.
|
inlineexplicit |
Definition at line 662 of file sc_fxval.hh.
Referenced by operator-(), overflow(), and quantization().
|
inlineexplicit |
Definition at line 669 of file sc_fxval.hh.
References SC_FXVAL_OBSERVER_CONSTRUCT_, and SC_FXVAL_OBSERVER_DEFAULT_.
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
inline |
Definition at line 676 of file sc_fxval.hh.
References ArmISA::a, SC_FXVAL_OBSERVER_CONSTRUCT_, SC_FXVAL_OBSERVER_DEFAULT_, SC_FXVAL_OBSERVER_READ_, and SC_FXVAL_OBSERVER_WRITE_.
sc_dt::sc_fxval::sc_fxval | ( | const sc_fxval_fast & | , |
sc_fxval_observer * | = 0 |
||
) |
|
inline |
Definition at line 4078 of file sc_fxnum.hh.
References SC_FXVAL_OBSERVER_CONSTRUCT_, SC_FXVAL_OBSERVER_DEFAULT_, and SC_FXVAL_OBSERVER_WRITE_.
|
inline |
Definition at line 4086 of file sc_fxnum.hh.
References SC_FXVAL_OBSERVER_CONSTRUCT_, SC_FXVAL_OBSERVER_DEFAULT_, and SC_FXVAL_OBSERVER_WRITE_.
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
inline |
Definition at line 719 of file sc_fxval.hh.
References m_rep, and SC_FXVAL_OBSERVER_DESTRUCT_.
void sc_dt::sc_fxval::dump | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 173 of file sc_fxval.cc.
|
inline |
Definition at line 1262 of file sc_fxval.hh.
References sc_dt::scfx_rep::get_bit(), ArmISA::i, and m_rep.
|
inline |
Definition at line 727 of file sc_fxval.hh.
References m_rep, and SC_FXVAL_OBSERVER_READ_.
|
inlineprotected |
Definition at line 1269 of file sc_fxval.hh.
References sc_dt::scfx_rep::get_type(), and m_rep.
|
inline |
Definition at line 1241 of file sc_fxval.hh.
References sc_dt::scfx_rep::is_inf(), m_rep, and SC_FXVAL_OBSERVER_READ_.
|
inline |
Definition at line 1234 of file sc_fxval.hh.
References sc_dt::scfx_rep::is_nan(), m_rep, and SC_FXVAL_OBSERVER_READ_.
|
inline |
Definition at line 1220 of file sc_fxval.hh.
References sc_dt::scfx_rep::is_neg(), m_rep, and SC_FXVAL_OBSERVER_READ_.
|
inline |
Definition at line 1248 of file sc_fxval.hh.
References sc_dt::scfx_rep::is_normal(), m_rep, and SC_FXVAL_OBSERVER_READ_.
|
inline |
Definition at line 1227 of file sc_fxval.hh.
References sc_dt::scfx_rep::is_zero(), m_rep, and SC_FXVAL_OBSERVER_READ_.
|
protected |
Definition at line 191 of file sc_fxval.cc.
|
inlineprotected |
Definition at line 659 of file sc_fxval.hh.
References m_observer.
|
inline |
Definition at line 1141 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().
|
inline |
Definition at line 751 of file sc_fxval.hh.
|
inline |
Definition at line 1127 of file sc_fxval.hh.
|
inline |
Definition at line 1111 of file sc_fxval.hh.
References ArmISA::c.
|
inline |
Definition at line 744 of file sc_fxval.hh.
References m_rep, sc_dt::neg_scfx_rep(), sc_fxval(), and SC_FXVAL_OBSERVER_READ_.
|
inline |
Definition at line 1134 of file sc_fxval.hh.
|
inline |
Definition at line 1119 of file sc_fxval.hh.
References ArmISA::c.
|
inlineprotected |
Definition at line 1281 of file sc_fxval.hh.
References m_rep, sc_dt::overflow_scfx_rep(), and sc_fxval().
void sc_dt::sc_fxval::print | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 162 of file sc_fxval.cc.
|
inlineprotected |
Definition at line 1275 of file sc_fxval.hh.
References m_rep, sc_dt::quantization_scfx_rep(), and sc_fxval().
|
inline |
Definition at line 1255 of file sc_fxval.hh.
References m_rep, and sc_dt::scfx_rep::rounding_flag().
void sc_dt::sc_fxval::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 165 of file sc_fxval.cc.
|
inline |
Definition at line 735 of file sc_fxval.hh.
References m_rep, and SC_FXVAL_OBSERVER_WRITE_.
const std::string sc_dt::sc_fxval::to_bin | ( | ) | const |
Definition at line 142 of file sc_fxval.cc.
References sc_dt::scfx_rep::dump(), m_rep, and X86ISA::os.
const std::string sc_dt::sc_fxval::to_dec | ( | ) | const |
Definition at line 136 of file sc_fxval.cc.
|
inline |
Definition at line 1212 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().
|
inline |
Definition at line 1205 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().
const std::string sc_dt::sc_fxval::to_hex | ( | ) | const |
Definition at line 154 of file sc_fxval.cc.
|
inline |
Definition at line 1163 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
inline |
Definition at line 1170 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
inline |
Definition at line 1191 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
const std::string sc_dt::sc_fxval::to_oct | ( | ) | const |
Definition at line 148 of file sc_fxval.cc.
|
inline |
Definition at line 1149 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
const std::string sc_dt::sc_fxval::to_string | ( | ) | const |
Definition at line 99 of file sc_fxval.cc.
References m_rep, and sc_dt::scfx_rep::to_string().
const std::string sc_dt::sc_fxval::to_string | ( | sc_fmt | fmt | ) | const |
Definition at line 117 of file sc_fxval.cc.
References m_rep, sc_dt::SC_E, sc_dt::SC_OCT, and sc_dt::scfx_rep::to_string().
const std::string sc_dt::sc_fxval::to_string | ( | sc_numrep | numrep | ) | const |
Definition at line 105 of file sc_fxval.cc.
References m_rep, sc_dt::SC_DEC, sc_dt::SC_E, and sc_dt::scfx_rep::to_string().
const std::string sc_dt::sc_fxval::to_string | ( | sc_numrep | numrep, |
bool | w_prefix | ||
) | const |
Definition at line 111 of file sc_fxval.cc.
References m_rep, sc_dt::SC_BIN, sc_dt::SC_E, and sc_dt::scfx_rep::to_string().
Definition at line 129 of file sc_fxval.cc.
References m_rep, X86ISA::os, and sc_dt::scfx_rep::print().
Definition at line 123 of file sc_fxval.cc.
References m_rep, sc_dt::SC_E, sc_dt::SC_HEX, and sc_dt::scfx_rep::to_string().
|
inline |
Definition at line 1177 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
inline |
Definition at line 1184 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
inline |
Definition at line 1198 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
inline |
Definition at line 1156 of file sc_fxval.hh.
References m_rep, SC_FXVAL_OBSERVER_READ_, and sc_dt::scfx_rep::to_uint64().
|
protected |
Definition at line 200 of file sc_fxval.cc.
Definition at line 922 of file sc_fxval.hh.
Definition at line 759 of file sc_fxval.hh.
Definition at line 819 of file sc_fxval.hh.
Definition at line 848 of file sc_fxval.hh.
Definition at line 855 of file sc_fxval.hh.
Definition at line 931 of file sc_fxval.hh.
|
friend |
Definition at line 88 of file sc_fxval.hh.
|
mutableprivate |
Definition at line 366 of file sc_fxval.hh.
Referenced by observer(), and sc_dt::sc_fxval_fast::observer().
|
private |
Definition at line 364 of file sc_fxval.hh.
Referenced by get_bit(), get_rep(), get_type(), is_inf(), is_nan(), is_neg(), is_normal(), is_zero(), operator double(), operator-(), overflow(), quantization(), rounding_flag(), set_rep(), to_bin(), to_double(), to_float(), to_int(), to_int64(), to_long(), to_short(), to_string(), to_uint(), to_uint64(), to_ulong(), to_ushort(), and ~sc_fxval().