gem5  v22.0.0.2
Classes | Namespaces | Macros
sc_fixed.hh File Reference
#include "sc_fix.hh"

Go to the source code of this file.

Classes

class  sc_dt::sc_fixed< W, I, Q, O, N >
 
class  sc_dt::sc_fixed_fast< W, I, Q, O, N >
 
class  sc_dt::sc_fixed< W, I, Q, O, N >
 
class  sc_dt::sc_fixed_fast< W, I, Q, O, N >
 

Namespaces

 sc_dt
 

Macros

#define DECL_CTORS_T_A(tp)
 
#define DECL_CTORS_T_B(tp)
 
#define DECL_ASN_OP_T(op, tp)   sc_fixed &operator op (tp);
 
#define DECL_ASN_OP_OTHER(op)
 
#define DECL_ASN_OP(op)
 
#define DECL_CTORS_T_A(tp)
 
#define DECL_CTORS_T_B(tp)
 
#define DECL_ASN_OP_T(op, tp)   sc_fixed_fast &operator op (tp);
 
#define DECL_ASN_OP_OTHER(op)
 
#define DECL_ASN_OP(op)
 
#define DEFN_CTORS_T(tp)
 
#define DEFN_ASN_OP_T(op, tp)
 
#define DEFN_ASN_OP_OTHER(op)
 
#define DEFN_ASN_OP(op)
 
#define DEFN_CTORS_T(tp)
 
#define DEFN_ASN_OP_T(op, tp)
 
#define DEFN_ASN_OP_OTHER(op)
 
#define DEFN_ASN_OP(op)
 

Macro Definition Documentation

◆ DECL_ASN_OP [1/2]

#define DECL_ASN_OP (   op)
Value:
DECL_ASN_OP_T(op, int) \
DECL_ASN_OP_T(op, unsigned int) \
DECL_ASN_OP_T(op, long) \
DECL_ASN_OP_T(op, unsigned long) \
DECL_ASN_OP_T(op, float) \
DECL_ASN_OP_T(op, double) \
DECL_ASN_OP_T(op, const char *) \
DECL_ASN_OP_T(op, const sc_fxval &) \
DECL_ASN_OP_T(op, const sc_fxval_fast &) \
DECL_ASN_OP_T(op, const sc_fxnum &) \
DECL_ASN_OP_T(op, const sc_fxnum_fast &) \
DECL_ASN_OP_OTHER(op)

Definition at line 266 of file sc_fixed.hh.

◆ DECL_ASN_OP [2/2]

#define DECL_ASN_OP (   op)
Value:
DECL_ASN_OP_T(op, int) \
DECL_ASN_OP_T(op, unsigned int) \
DECL_ASN_OP_T(op, long) \
DECL_ASN_OP_T(op, unsigned long) \
DECL_ASN_OP_T(op, float) \
DECL_ASN_OP_T(op, double) \
DECL_ASN_OP_T(op, const char *) \
DECL_ASN_OP_T(op, const sc_fxval &) \
DECL_ASN_OP_T(op, const sc_fxval_fast &) \
DECL_ASN_OP_T(op, const sc_fxnum &) \
DECL_ASN_OP_T(op, const sc_fxnum_fast &) \
DECL_ASN_OP_OTHER(op)

Definition at line 266 of file sc_fixed.hh.

◆ DECL_ASN_OP_OTHER [1/2]

#define DECL_ASN_OP_OTHER (   op)
Value:
DECL_ASN_OP_T(op, uint64) \
DECL_ASN_OP_T(op, const sc_int_base&) \
DECL_ASN_OP_T(op, const sc_uint_base&) \
DECL_ASN_OP_T(op, const sc_signed&) \
DECL_ASN_OP_T(op, const sc_unsigned&)

Definition at line 258 of file sc_fixed.hh.

◆ DECL_ASN_OP_OTHER [2/2]

#define DECL_ASN_OP_OTHER (   op)
Value:
DECL_ASN_OP_T(op, uint64) \
DECL_ASN_OP_T(op, const sc_int_base &) \
DECL_ASN_OP_T(op, const sc_uint_base &) \
DECL_ASN_OP_T(op, const sc_signed &) \
DECL_ASN_OP_T(op, const sc_unsigned &)

Definition at line 258 of file sc_fixed.hh.

◆ DECL_ASN_OP_T [1/2]

#define DECL_ASN_OP_T (   op,
  tp 
)    sc_fixed &operator op (tp);

Definition at line 256 of file sc_fixed.hh.

◆ DECL_ASN_OP_T [2/2]

#define DECL_ASN_OP_T (   op,
  tp 
)    sc_fixed_fast &operator op (tp);

Definition at line 256 of file sc_fixed.hh.

◆ DECL_CTORS_T_A [1/2]

#define DECL_CTORS_T_A (   tp)
Value:
sc_fixed(tp, sc_fxnum_observer * =0); \
sc_fixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0);

Definition at line 218 of file sc_fixed.hh.

◆ DECL_CTORS_T_A [2/2]

#define DECL_CTORS_T_A (   tp)
Value:
sc_fixed_fast(tp, sc_fxnum_fast_observer * =0); \
sc_fixed_fast(tp, const sc_fxcast_switch &, \
sc_fxnum_fast_observer * =0);

Definition at line 218 of file sc_fixed.hh.

◆ DECL_CTORS_T_B [1/2]

#define DECL_CTORS_T_B (   tp)
Value:
explicit sc_fixed(tp, sc_fxnum_observer * =0); \
sc_fixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0);

Definition at line 223 of file sc_fixed.hh.

◆ DECL_CTORS_T_B [2/2]

#define DECL_CTORS_T_B (   tp)
Value:
explicit sc_fixed_fast(tp, sc_fxnum_fast_observer * =0); \
sc_fixed_fast(tp, const sc_fxcast_switch &, \
sc_fxnum_fast_observer * =0);

Definition at line 223 of file sc_fixed.hh.

◆ DEFN_ASN_OP [1/2]

#define DEFN_ASN_OP (   op)
Value:
DEFN_ASN_OP_T(op, unsigned int) \
DEFN_ASN_OP_T(op, long) \
DEFN_ASN_OP_T(op, unsigned long) \
DEFN_ASN_OP_T(op, float) \
DEFN_ASN_OP_T(op, double) \
DEFN_ASN_OP_T(op, const char *) \
DEFN_ASN_OP_T(op, const sc_fxval &) \
DEFN_ASN_OP_T(op, const sc_fxval_fast &) \
DEFN_ASN_OP_T(op, const sc_fxnum &) \
DEFN_ASN_OP_T(op, const sc_fxnum_fast &) \
DEFN_ASN_OP_OTHER(op)

Definition at line 549 of file sc_fixed.hh.

◆ DEFN_ASN_OP [2/2]

#define DEFN_ASN_OP (   op)
Value:
DEFN_ASN_OP_T(op, unsigned int) \
DEFN_ASN_OP_T(op, long) \
DEFN_ASN_OP_T(op, unsigned long) \
DEFN_ASN_OP_T(op, float) \
DEFN_ASN_OP_T(op, double) \
DEFN_ASN_OP_T(op, const char *) \
DEFN_ASN_OP_T(op, const sc_fxval &) \
DEFN_ASN_OP_T(op, const sc_fxval_fast &) \
DEFN_ASN_OP_T(op, const sc_fxnum &) \
DEFN_ASN_OP_T(op, const sc_fxnum_fast &) \
DEFN_ASN_OP_OTHER(op)

Definition at line 549 of file sc_fixed.hh.

◆ DEFN_ASN_OP_OTHER [1/2]

#define DEFN_ASN_OP_OTHER (   op)
Value:
DEFN_ASN_OP_T(op, uint64) \
DEFN_ASN_OP_T(op, const sc_int_base &) \
DEFN_ASN_OP_T(op, const sc_uint_base &) \
DEFN_ASN_OP_T(op, const sc_signed &) \
DEFN_ASN_OP_T(op, const sc_unsigned &)

Definition at line 541 of file sc_fixed.hh.

◆ DEFN_ASN_OP_OTHER [2/2]

#define DEFN_ASN_OP_OTHER (   op)
Value:
DEFN_ASN_OP_T(op, uint64) \
DEFN_ASN_OP_T(op, const sc_int_base &) \
DEFN_ASN_OP_T(op, const sc_uint_base &) \
DEFN_ASN_OP_T(op, const sc_signed &) \
DEFN_ASN_OP_T(op, const sc_unsigned &)

Definition at line 541 of file sc_fixed.hh.

◆ DEFN_ASN_OP_T [1/2]

#define DEFN_ASN_OP_T (   op,
  tp 
)
Value:
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
inline sc_fixed<W, I, Q, O, N> & \
sc_fixed<W, I, Q, O, N>::operator op (tp a) \
{ \
sc_fix::operator op (a); \
return *this; \
}

Definition at line 532 of file sc_fixed.hh.

◆ DEFN_ASN_OP_T [2/2]

#define DEFN_ASN_OP_T (   op,
  tp 
)
Value:
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
inline sc_fixed_fast<W, I, Q, O, N> & \
sc_fixed_fast<W, I, Q, O, N>::operator op (tp a) \
{ \
sc_fix_fast::operator op (a); \
return *this; \
}

Definition at line 532 of file sc_fixed.hh.

◆ DEFN_CTORS_T [1/2]

#define DEFN_CTORS_T (   tp)
Value:
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
tp a, sc_fxnum_observer* observer_) : \
sc_fix(a, W, I, Q, O, N, observer_) \
{} \
\
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
tp a, const sc_fxcast_switch &cast_sw, \
sc_fxnum_observer *observer_) : \
sc_fix(a, W, I, Q, O, N, cast_sw, observer_) \
{}

Definition at line 481 of file sc_fixed.hh.

◆ DEFN_CTORS_T [2/2]

#define DEFN_CTORS_T (   tp)
Value:
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
inline sc_fixed_fast<W, I, Q, O, N>::sc_fixed_fast( \
tp a, sc_fxnum_fast_observer *observer_) : \
sc_fix_fast(a, W, I, Q, O, N, observer_) \
{} \
\
template <int W, int I, sc_q_mode Q, sc_o_mode O, int N> \
inline sc_fixed_fast<W, I, Q, O, N>::sc_fixed_fast( \
tp a, const sc_fxcast_switch &cast_sw, \
sc_fxnum_fast_observer *observer_) : \
sc_fix_fast(a, W, I, Q, O, N, cast_sw, observer_) \
{}

Definition at line 481 of file sc_fixed.hh.

sc_fix
#define sc_fix
Definition: fx_precision_double.h:63
gem5::ArmISA::a
Bitfield< 8 > a
Definition: misc_types.hh:66
DECL_ASN_OP_T
#define DECL_ASN_OP_T(op, tp)
Definition: sc_fixed.hh:256
DEFN_ASN_OP_T
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_fixed.hh:532
sc_dt::uint64
uint64_t uint64
Definition: sc_nbdefs.hh:206
sc_dt::int64
int64_t int64
Definition: sc_nbdefs.hh:205
sc_fxval
#define sc_fxval
Definition: fx_precision_double.h:65
sc_fixed
#define sc_fixed
Definition: fx_precision_double.h:64
gem5::X86ISA::op
Bitfield< 4 > op
Definition: types.hh:83

Generated on Thu Jul 28 2022 13:32:50 for gem5 by doxygen 1.8.17