gem5 v24.0.0.0
Loading...
Searching...
No Matches
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

namespace  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_repsc_dt::add_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int max_wl=SC_DEFAULT_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_repsc_dt::sub_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int max_wl=SC_DEFAULT_MAX_WL_)
 
void sc_dt::multiply (scfx_rep &result, const scfx_rep &lhs, const scfx_rep &rhs, int max_wl=SC_DEFAULT_MAX_WL_)
 
scfx_repsc_dt::div_scfx_rep (const scfx_rep &lhs, const scfx_rep &rhs, int div_wl=SC_DEFAULT_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_nodesc_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 379 of file scfx_rep.cc.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0