gem5  v20.1.0.0
Classes | Namespaces | Macros | Functions | Variables
scfx_rep.cc File Reference
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include "base/compiler.hh"
#include "systemc/ext/dt/bit/sc_bv_base.hh"
#include "systemc/ext/dt/bit/sc_lv_base.hh"
#include "systemc/ext/dt/fx/messages.hh"
#include "systemc/ext/dt/fx/scfx_ieee.hh"
#include "systemc/ext/dt/fx/scfx_pow10.hh"
#include "systemc/ext/dt/fx/scfx_rep.hh"
#include "systemc/ext/dt/fx/scfx_utils.hh"
#include "systemc/ext/utils/endian.hh"
#include "systemc/ext/utils/messages.hh"

Go to the source code of this file.

Classes

union  sc_dt::scfx_rep_node
 
union  sc_dt::word_short
 

Namespaces

 sc_dt
 

Macros

#define SCFX_FAIL_IF_(cnd)
 

Functions

static int sc_dt::n_word (int x)
 
void sc_dt::print_dec (scfx_string &s, const scfx_rep &num, int w_prefix, sc_fmt fmt)
 
void sc_dt::print_other (scfx_string &s, const scfx_rep &a, sc_numrep numrep, int w_prefix, sc_fmt fmt, const scfx_params *params)
 
static int sc_dt::add_mants (int size, scfx_mant &result, const scfx_mant &a, const scfx_mant &b)
 
static int sc_dt::sub_mants (int size, scfx_mant &result, const scfx_mant &a, const scfx_mant &b)
 
scfx_rep * sc_dt::add_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int max_wl)
 
static int sc_dt::sub_with_index (scfx_mant &a, int a_msw, int, const scfx_mant &b, int b_msw, int b_lsw)
 
scfx_rep * sc_dt::sub_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int max_wl)
 
void sc_dt::multiply (scfx_rep &result, const scfx_rep &lhs, const scfx_rep &rhs, int max_wl)
 
scfx_rep * sc_dt::div_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int div_wl)
 
int sc_dt::compare_abs (const scfx_rep &a, const scfx_rep &b)
 
int sc_dt::cmp_scfx_rep (const scfx_rep &a, const scfx_rep &b)
 
void sc_dt::align (const scfx_rep &lhs, const scfx_rep &rhs, int &new_wp, int &len_mant, scfx_mant_ref &lhs_mant, scfx_mant_ref &rhs_mant)
 
int sc_dt::compare_msw_ff (const scfx_rep &lhs, const scfx_rep &rhs)
 

Variables

static scfx_pow10 sc_dt::pow10_fx
 
static const int sc_dt::mantissa0_size = SCFX_IEEE_DOUBLE_M_SIZE - bits_in_int
 
static scfx_rep_node * sc_dt::list = 0
 
return sc_dt::remainder
 

Macro Definition Documentation

◆ SCFX_FAIL_IF_

#define SCFX_FAIL_IF_ (   cnd)
Value:
{ \
if ((cnd)) { \
m_state = not_a_number; \
m_mant.clear(); /* to avoid Purify UMRs during assignment */ \
return; \
} \
}

Definition at line 411 of file scfx_rep.cc.


Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17