gem5 v24.0.0.0
|
#include <sc_fxval.hh>
Public Attributes | |
uint64 const sc_uint_base | int |
Protected Member Functions | |
sc_fxval_fast_observer * | observer () const |
sc_fxval_fast_observer * | lock_observer () const |
void | unlock_observer (sc_fxval_fast_observer *) const |
Static Protected Member Functions | |
static double | from_string (const char *) |
Private Attributes | |
double | m_val |
sc_fxval_fast_observer * | m_observer |
Friends | |
class | sc_fxnum_fast |
void | neg (sc_fxval_fast &c, const sc_fxval_fast &a) |
const sc_fxval_fast | operator/ (const sc_fxval_fast &a, const sc_fxval_fast &b) |
const sc_fxval_fast | operator>> (const sc_fxval_fast &a, int b) |
void | lshift (sc_fxval_fast &c, const sc_fxval_fast &a, int b) |
void | rshift (sc_fxval_fast &c, const sc_fxval_fast &a, int b) |
Definition at line 376 of file sc_fxval.hh.
|
inlineexplicit |
Definition at line 1316 of file sc_fxval.hh.
References SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, and SC_FXVAL_FAST_OBSERVER_DEFAULT_.
Referenced by operator++(), operator-(), and operator--().
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
sc_dt::sc_fxval_fast::sc_fxval_fast | ( | const sc_fxval & | , |
sc_fxval_fast_observer * | = 0 ) |
|
inline |
Definition at line 1323 of file sc_fxval.hh.
References a, SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 4261 of file sc_fxnum.hh.
References SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 4270 of file sc_fxnum.hh.
References SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
inline |
Definition at line 1370 of file sc_fxval.hh.
References SC_FXVAL_FAST_OBSERVER_DESTRUCT_.
uint64 sc_dt::sc_fxval_fast::DECL_BIN_OP_T | ( | / | , |
const sc_int_base & | ) |
uint64 const sc_uint_base & sc_dt::sc_fxval_fast::DECL_BIN_OP_T | ( | / | , |
const sc_signed & | ) const & |
sc_dt::sc_fxval_fast::DECL_BIN_OP_T | ( | / | , |
int64 | ) |
void sc_dt::sc_fxval_fast::dump | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 551 of file sc_fxval.cc.
References m_val.
|
staticprotected |
Definition at line 628 of file sc_fxval.cc.
References sc_dt::scfx_ieee_double::inf(), sc_dt::scfx_ieee_double::nan(), sc_dt::SC_BIN, sc_dt::SC_BIN_SM, sc_dt::SC_BIN_US, sc_dt::SC_CSD, sc_dt::SC_DEC, sc_dt::SC_HEX, sc_dt::SC_HEX_SM, sc_dt::SC_HEX_US, sc_dt::SC_OCT, sc_dt::SC_OCT_SM, sc_dt::SC_OCT_US, sc_dt::scfx_csd2tc(), sc_dt::scfx_exp_start(), SCFX_FAIL_IF_, sc_dt::scfx_is_digit(), sc_dt::scfx_is_inf(), sc_dt::scfx_is_nan(), sc_dt::scfx_parse_prefix(), sc_dt::scfx_parse_sign(), and sc_dt::scfx_to_digit().
bool sc_dt::sc_fxval_fast::get_bit | ( | int | i | ) | const |
Definition at line 569 of file sc_fxval.cc.
References is_inf(), is_nan(), is_normal(), is_zero(), and m_val.
|
inline |
Definition at line 1377 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
|
inline |
Definition at line 1902 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
Referenced by get_bit().
|
inline |
Definition at line 1894 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
Referenced by get_bit().
|
inline |
Definition at line 1878 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
|
inline |
Definition at line 1910 of file sc_fxval.hh.
References is_normal(), is_zero(), m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
Referenced by get_bit(), is_normal(), and to_uint64().
|
inline |
Definition at line 1886 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
Referenced by get_bit(), and is_normal().
|
protected |
Definition at line 606 of file sc_fxval.cc.
References m_observer, and SC_ASSERT_.
|
inlineprotected |
Definition at line 1309 of file sc_fxval.hh.
References sc_dt::sc_fxval::m_observer.
|
inline |
Definition at line 1783 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
|
inline |
Definition at line 1400 of file sc_fxval.hh.
|
inline |
Definition at line 1765 of file sc_fxval.hh.
References m_val, SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 1743 of file sc_fxval.hh.
References c, m_val, sc_fxval_fast(), SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 1393 of file sc_fxval.hh.
References m_val, sc_fxval_fast(), and SC_FXVAL_FAST_OBSERVER_READ_.
|
inline |
Definition at line 1774 of file sc_fxval.hh.
References m_val, SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 1754 of file sc_fxval.hh.
References c, m_val, sc_fxval_fast(), SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.
void sc_dt::sc_fxval_fast::print | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 537 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
|
inline |
Definition at line 1918 of file sc_fxval.hh.
void sc_dt::sc_fxval_fast::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 543 of file sc_fxval.cc.
|
inline |
Definition at line 1385 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_WRITE_.
const std::string sc_dt::sc_fxval_fast::to_bin | ( | ) | const |
Definition at line 516 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxval_fast::to_dec | ( | ) | const |
Definition at line 510 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
|
inline |
Definition at line 1870 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
|
inline |
Definition at line 1863 of file sc_fxval.hh.
References m_val, and SC_FXVAL_FAST_OBSERVER_READ_.
const std::string sc_dt::sc_fxval_fast::to_hex | ( | ) | const |
Definition at line 528 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
|
inline |
Definition at line 1812 of file sc_fxval.hh.
References to_uint64().
|
inline |
Definition at line 1805 of file sc_fxval.hh.
References to_uint64().
|
inline |
Definition at line 1849 of file sc_fxval.hh.
References to_uint64().
const std::string sc_dt::sc_fxval_fast::to_oct | ( | ) | const |
Definition at line 522 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
|
inline |
Definition at line 1791 of file sc_fxval.hh.
References to_uint64().
const std::string sc_dt::sc_fxval_fast::to_string | ( | ) | const |
Definition at line 472 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxval_fast::to_string | ( | sc_fmt | fmt | ) | const |
Definition at line 491 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxval_fast::to_string | ( | sc_numrep | numrep | ) | const |
Definition at line 478 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxval_fast::to_string | ( | sc_numrep | numrep, |
bool | w_prefix ) const |
Definition at line 484 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxval_fast::to_string | ( | sc_numrep | numrep, |
bool | w_prefix, | ||
sc_fmt | fmt ) const |
Definition at line 503 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
Definition at line 497 of file sc_fxval.cc.
References m_val, and sc_dt::to_string().
|
inline |
Definition at line 1819 of file sc_fxval.hh.
References to_uint64().
|
inline |
Definition at line 1826 of file sc_fxval.hh.
References is_normal(), m_val, and sc_dt::UINT64_ONE.
Referenced by to_int(), to_int64(), to_long(), to_short(), to_uint(), to_ulong(), and to_ushort().
|
inline |
Definition at line 1856 of file sc_fxval.hh.
References to_uint64().
|
inline |
Definition at line 1798 of file sc_fxval.hh.
References to_uint64().
|
protected |
Definition at line 615 of file sc_fxval.cc.
References m_observer, and SC_ASSERT_.
|
friend |
Definition at line 1564 of file sc_fxval.hh.
|
friend |
Definition at line 1408 of file sc_fxval.hh.
|
friend |
Definition at line 1464 of file sc_fxval.hh.
|
friend |
Definition at line 1501 of file sc_fxval.hh.
|
friend |
Definition at line 1572 of file sc_fxval.hh.
|
friend |
Definition at line 378 of file sc_fxval.hh.
uint64 const sc_uint_base sc_dt::sc_fxval_fast::int |
Definition at line 469 of file sc_fxval.hh.
|
mutableprivate |
Definition at line 645 of file sc_fxval.hh.
Referenced by lock_observer(), and unlock_observer().
|
private |
Definition at line 643 of file sc_fxval.hh.
Referenced by dump(), get_bit(), get_val(), is_inf(), is_nan(), is_neg(), is_normal(), is_zero(), operator double(), operator++(), operator++(), operator-(), operator--(), operator--(), print(), set_val(), to_bin(), to_dec(), to_double(), to_float(), to_hex(), to_oct(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), and to_uint64().