Go to the source code of this file.
|
| #define | DECL_CTORS_T(tp) |
| |
| #define | DECL_CTORS_T_A(tp) |
| |
| #define | DECL_CTORS_T_B(tp) |
| |
| #define | DECL_ASN_OP_T(op, tp) |
| |
| #define | DECL_ASN_OP_OTHER(op) |
| |
| #define | DECL_ASN_OP(op) |
| |
| #define | DECL_CTORS_T(tp) |
| |
| #define | DECL_CTORS_T_A(tp) |
| |
| #define | DECL_CTORS_T_B(tp) |
| |
| #define | DECL_ASN_OP_T(op, tp) |
| |
| #define | DECL_ASN_OP_OTHER(op) |
| |
| #define | DECL_ASN_OP(op) |
| |
| #define | DEFN_CTORS_T_A(tp) |
| |
| #define | DEFN_CTORS_T_B(tp) |
| |
| #define | DEFN_BIN_OP_T(op, op2, tp1, tp2) |
| |
| #define | DEFN_BIN_FNC_T(fnc, op2, tp1, tp2) |
| |
| #define | DEFN_ASN_OP_T(op, tp) |
| |
| #define | DEFN_ASN_OP_OTHER(op) |
| |
| #define | DEFN_ASN_OP(op) |
| |
| #define | DEFN_ASN_OP_T(op, op2, tp) |
| |
| #define | DEFN_CTORS_T_A(tp) |
| |
| #define | DEFN_CTORS_T_B(tp) |
| |
| #define | DEFN_BIN_OP_T(op, op2, tp1, tp2) |
| |
| #define | DEFN_BIN_FNC_T(fnc, op2, tp1, tp2) |
| |
| #define | DEFN_ASN_OP_T(op, tp) |
| |
| #define | DEFN_ASN_OP_OTHER(op) |
| |
| #define | DEFN_ASN_OP(op) |
| |
| #define | DEFN_ASN_OP_T(op, op2, tp) |
| |
◆ DECL_ASN_OP [1/2]
| #define DECL_ASN_OP |
( |
| op | ) |
|
Value:
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_OTHER(op)
#define DECL_ASN_OP_T(op, tp)
Definition at line 188 of file sc_ufix.hh.
◆ DECL_ASN_OP [2/2]
| #define DECL_ASN_OP |
( |
| op | ) |
|
Value:
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_OTHER(op)
Definition at line 188 of file sc_ufix.hh.
◆ DECL_ASN_OP_OTHER [1/2]
| #define DECL_ASN_OP_OTHER |
( |
| op | ) |
|
◆ DECL_ASN_OP_OTHER [2/2]
| #define DECL_ASN_OP_OTHER |
( |
| op | ) |
|
◆ DECL_ASN_OP_T [1/2]
| #define DECL_ASN_OP_T |
( |
| op, |
|
|
| tp ) |
◆ DECL_ASN_OP_T [2/2]
| #define DECL_ASN_OP_T |
( |
| op, |
|
|
| tp ) |
◆ DECL_CTORS_T [1/2]
| #define DECL_CTORS_T |
( |
| tp | ) |
|
Value: sc_ufix(tp,
int,
int, sc_fxnum_observer * =0); \
sc_fxnum_observer * =0); \
sc_fxnum_observer * =0); \
sc_fxnum_observer * =0); \
sc_fxnum_observer * =0);
Definition at line 93 of file sc_ufix.hh.
◆ DECL_CTORS_T [2/2]
| #define DECL_CTORS_T |
( |
| tp | ) |
|
Value:
sc_fxnum_fast_observer * =0); \
sc_fxnum_fast_observer * =0); \
sc_fxnum_fast_observer * =0); \
sc_fxnum_fast_observer * =0); \
sc_fxnum_fast_observer * =0); \
sc_fxnum_fast_observer * =0);
Definition at line 93 of file sc_ufix.hh.
◆ DECL_CTORS_T_A [1/2]
| #define DECL_CTORS_T_A |
( |
| tp | ) |
|
Value: sc_ufix(tp, sc_fxnum_observer * =0); \
DECL_CTORS_T(tp)
Definition at line 113 of file sc_ufix.hh.
◆ DECL_CTORS_T_A [2/2]
| #define DECL_CTORS_T_A |
( |
| tp | ) |
|
◆ DECL_CTORS_T_B [1/2]
| #define DECL_CTORS_T_B |
( |
| tp | ) |
|
Value: explicit sc_ufix(tp, sc_fxnum_observer * =0); \
DECL_CTORS_T(tp)
Definition at line 117 of file sc_ufix.hh.
◆ DECL_CTORS_T_B [2/2]
| #define DECL_CTORS_T_B |
( |
| tp | ) |
|
◆ 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_OTHER(op)
#define DEFN_ASN_OP_T(op, tp)
Definition at line 804 of file sc_ufix.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_OTHER(op)
Definition at line 804 of file sc_ufix.hh.
◆ DEFN_ASN_OP_OTHER [1/2]
| #define DEFN_ASN_OP_OTHER |
( |
| op | ) |
|
◆ DEFN_ASN_OP_OTHER [2/2]
| #define DEFN_ASN_OP_OTHER |
( |
| op | ) |
|
◆ DEFN_ASN_OP_T [1/4]
| #define DEFN_ASN_OP_T |
( |
| op, |
|
|
| op2, |
|
|
| tp ) |
Value:
sc_ufix::operator op (
const tp &
b) \
{ \
SC_FXNUM_OBSERVER_READ_(*this) \
int iwl_c = iwl(); \
for (int i = iwl_c - wl(); i < iwl_c; ++i) \
set_bit(i, get_bit(i) op2
b.get_bit(i)); \
cast(); \
SC_FXNUM_OBSERVER_WRITE_(*this) \
return *this; \
}
Definition at line 788 of file sc_ufix.hh.
◆ DEFN_ASN_OP_T [2/4]
| #define DEFN_ASN_OP_T |
( |
| op, |
|
|
| op2, |
|
|
| tp ) |
Value:
sc_ufix_fast::operator op (
const tp &
b) \
{ \
SC_FXNUM_FAST_OBSERVER_READ_(*this) \
int iwl_c = iwl(); \
for (int i = iwl_c - wl(); i < iwl_c; ++i) \
set_bit(i, get_bit(i) op2
b.get_bit(i)); \
cast(); \
SC_FXNUM_FAST_OBSERVER_WRITE_(*this) \
return *this; \
}
Definition at line 788 of file sc_ufix.hh.
◆ DEFN_ASN_OP_T [3/4]
| #define DEFN_ASN_OP_T |
( |
| op, |
|
|
| tp ) |
Value:
sc_ufix::operator op (tp
a) \
{ \
sc_fxnum::operator op(
a); \
return *this; \
}
Definition at line 788 of file sc_ufix.hh.
◆ DEFN_ASN_OP_T [4/4]
| #define DEFN_ASN_OP_T |
( |
| op, |
|
|
| tp ) |
Value:
sc_ufix_fast::operator op (tp
a) \
{ \
sc_fxnum_fast::operator op(
a); \
return *this; \
}
Definition at line 788 of file sc_ufix.hh.
◆ DEFN_BIN_FNC_T [1/2]
| #define DEFN_BIN_FNC_T |
( |
| fnc, |
|
|
| op2, |
|
|
| tp1, |
|
|
| tp2 ) |
Value:inline void \
{ \
for (
int i = iwl_c -
c.wl(); i < iwl_c; ++i) \
c.set_bit(i,
a.get_bit(i) op2
b.get_bit(i)); \
SC_FXNUM_OBSERVER_WRITE_(
c) \
}
Definition at line 753 of file sc_ufix.hh.
◆ DEFN_BIN_FNC_T [2/2]
| #define DEFN_BIN_FNC_T |
( |
| fnc, |
|
|
| op2, |
|
|
| tp1, |
|
|
| tp2 ) |
Value:inline void \
{ \
for (
int i = iwl_c -
c.wl(); i < iwl_c; ++i) \
c.set_bit(i,
a.get_bit(i) op2
b.get_bit(i)); \
SC_FXNUM_FAST_OBSERVER_WRITE_(
c) \
}
Definition at line 753 of file sc_ufix.hh.
◆ DEFN_BIN_OP_T [1/2]
| #define DEFN_BIN_OP_T |
( |
| op, |
|
|
| op2, |
|
|
| tp1, |
|
|
| tp2 ) |
Value:inline const sc_ufix \
operator op (
const tp1 &
a,
const tp2 &
b) \
{ \
int iwl_c =
sc_max(iwl_a, iwl_b); \
int fwl_c =
sc_max(
a.wl() - iwl_a,
b.wl() - iwl_b); \
for (int i = -fwl_c; i < iwl_c; ++i) \
c.set_bit(i,
a.get_bit(i) op2
b.get_bit(i)); \
return sc_ufix(
c, iwl_c + fwl_c, iwl_c); \
}
const T sc_max(const T &a, const T &b)
Definition at line 722 of file sc_ufix.hh.
◆ DEFN_BIN_OP_T [2/2]
| #define DEFN_BIN_OP_T |
( |
| op, |
|
|
| op2, |
|
|
| tp1, |
|
|
| tp2 ) |
Value:inline const sc_ufix_fast \
operator op (
const tp1 &
a,
const tp2 &
b) \
{ \
int iwl_c =
sc_max(iwl_a, iwl_b); \
int fwl_c =
sc_max(
a.wl() - iwl_a,
b.wl() - iwl_b); \
for (int i = -fwl_c; i < iwl_c; ++i) \
c.set_bit(i,
a.get_bit(i) op2
b.get_bit(i)); \
}
Definition at line 722 of file sc_ufix.hh.
◆ DEFN_CTORS_T_A [1/2]
| #define DEFN_CTORS_T_A |
( |
| tp | ) |
|
◆ DEFN_CTORS_T_A [2/2]
| #define DEFN_CTORS_T_A |
( |
| tp | ) |
|
◆ DEFN_CTORS_T_B [1/2]
| #define DEFN_CTORS_T_B |
( |
| tp | ) |
|
◆ DEFN_CTORS_T_B [2/2]
| #define DEFN_CTORS_T_B |
( |
| tp | ) |
|