gem5
v20.0.0.3
|
#include <cctype>
#include <cmath>
#include <sstream>
#include "systemc/ext/dt/bit/sc_bv_base.hh"
#include "systemc/ext/dt/bit/sc_lv_base.hh"
#include "systemc/ext/dt/fx/sc_ufix.hh"
#include "systemc/ext/dt/fx/scfx_other_defs.hh"
#include "systemc/ext/dt/int/messages.hh"
#include "systemc/ext/dt/int/sc_int_base.hh"
#include "systemc/ext/dt/int/sc_signed.hh"
#include "systemc/ext/dt/int/sc_uint_base.hh"
#include "systemc/ext/dt/int/sc_unsigned.hh"
#include "systemc/ext/dt/misc/sc_concatref.hh"
#include "systemc/ext/utils/messages.hh"
#include "sc_nbfriends.inc"
#include "sc_nbcommon.inc"
#include "sc_unsigned_bitref.inc"
#include "sc_unsigned_subref.inc"
Go to the source code of this file.
Namespaces | |
sc_core | |
sc_dt | |
Macros | |
#define | CONVERT_LONG(u) |
#define | CONVERT_LONG_2(u) |
#define | CONVERT_INT(u) |
#define | CONVERT_INT_2(u) |
#define | CONVERT_INT64(u) |
#define | CONVERT_INT64_2(u) |
#define | CLASS_TYPE sc_unsigned |
#define | CLASS_TYPE_STR "sc_unsigned" |
#define | ADD_HELPER add_unsigned_friend |
#define | SUB_HELPER sub_unsigned_friend |
#define | MUL_HELPER mul_unsigned_friend |
#define | DIV_HELPER div_unsigned_friend |
#define | MOD_HELPER mod_unsigned_friend |
#define | AND_HELPER and_unsigned_friend |
#define | OR_HELPER or_unsigned_friend |
#define | XOR_HELPER xor_unsigned_friend |
#define | SC_UNSIGNED |
#define | IF_SC_SIGNED 0 |
#define | CLASS_TYPE_SUBREF sc_unsigned_subref_r |
#define | OTHER_CLASS_TYPE sc_signed |
#define | OTHER_CLASS_TYPE_SUBREF sc_signed_subref_r |
#define | MUL_ON_HELPER mul_on_help_unsigned |
#define | DIV_ON_HELPER div_on_help_unsigned |
#define | MOD_ON_HELPER mod_on_help_unsigned |
Functions | |
sc_unsigned | sc_dt::operator<< (const sc_unsigned &u, const sc_int_base &v) |
sc_unsigned | sc_dt::operator>> (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator== (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator== (const sc_int_base &u, const sc_unsigned &v) |
bool | sc_dt::operator!= (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator!= (const sc_int_base &u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator< (const sc_int_base &u, const sc_unsigned &v) |
bool | sc_dt::operator<= (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator<= (const sc_int_base &u, const sc_unsigned &v) |
bool | sc_dt::operator> (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator> (const sc_int_base &u, const sc_unsigned &v) |
bool | sc_dt::operator>= (const sc_unsigned &u, const sc_int_base &v) |
bool | sc_dt::operator>= (const sc_int_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator+ (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator+ (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator* (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator* (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator/ (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator/ (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator% (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator% (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator& (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator& (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator| (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator| (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator^ (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator^ (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator<< (const sc_unsigned &u, const sc_uint_base &v) |
sc_unsigned | sc_dt::operator>> (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator== (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator== (const sc_uint_base &u, const sc_unsigned &v) |
bool | sc_dt::operator!= (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator!= (const sc_uint_base &u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator< (const sc_uint_base &u, const sc_unsigned &v) |
bool | sc_dt::operator<= (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator<= (const sc_uint_base &u, const sc_unsigned &v) |
bool | sc_dt::operator> (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator> (const sc_uint_base &u, const sc_unsigned &v) |
bool | sc_dt::operator>= (const sc_unsigned &u, const sc_uint_base &v) |
bool | sc_dt::operator>= (const sc_uint_base &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator+ (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator+ (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator+ (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator+ (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator+ (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator* (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator* (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator* (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator* (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator* (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator/ (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator/ (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator/ (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator/ (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator/ (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator% (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator% (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator% (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator% (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator% (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator& (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator& (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator& (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator& (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator& (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator| (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator| (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator| (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator| (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator| (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator^ (const sc_unsigned &u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator^ (const sc_unsigned &u, uint64 v) |
sc_unsigned | sc_dt::operator^ (uint64 u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator^ (const sc_unsigned &u, unsigned long v) |
sc_unsigned | sc_dt::operator^ (unsigned long u, const sc_unsigned &v) |
sc_unsigned | sc_dt::operator<< (const sc_unsigned &u, const sc_signed &v) |
sc_unsigned | sc_dt::operator>> (const sc_unsigned &u, const sc_signed &v) |
sc_unsigned | sc_dt::operator+ (const sc_unsigned &u) |
bool | sc_dt::operator== (const sc_unsigned &u, const sc_unsigned &v) |
bool | sc_dt::operator== (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator== (const sc_signed &u, const sc_unsigned &v) |
bool | sc_dt::operator== (const sc_unsigned &u, int64 v) |
bool | sc_dt::operator== (int64 u, const sc_unsigned &v) |
bool | sc_dt::operator== (const sc_unsigned &u, uint64 v) |
bool | sc_dt::operator== (uint64 u, const sc_unsigned &v) |
bool | sc_dt::operator== (const sc_unsigned &u, long v) |
bool | sc_dt::operator== (long u, const sc_unsigned &v) |
bool | sc_dt::operator== (const sc_unsigned &u, unsigned long v) |
bool | sc_dt::operator== (unsigned long u, const sc_unsigned &v) |
bool | sc_dt::operator!= (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator!= (const sc_signed &u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator< (const sc_signed &u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, int64 v) |
bool | sc_dt::operator< (int64 u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, uint64 v) |
bool | sc_dt::operator< (uint64 u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, long v) |
bool | sc_dt::operator< (long u, const sc_unsigned &v) |
bool | sc_dt::operator< (const sc_unsigned &u, unsigned long v) |
bool | sc_dt::operator< (unsigned long u, const sc_unsigned &v) |
bool | sc_dt::operator<= (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator<= (const sc_signed &u, const sc_unsigned &v) |
bool | sc_dt::operator> (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator> (const sc_signed &u, const sc_unsigned &v) |
bool | sc_dt::operator>= (const sc_unsigned &u, const sc_signed &v) |
bool | sc_dt::operator>= (const sc_signed &u, const sc_unsigned &v) |
int | sc_dt::compare_unsigned (small_type us, int unb, int und, const sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd, small_type if_u_signed, small_type if_v_signed) |
CLASS_TYPE | sc_dt::ADD_HELPER (small_type us, int unb, int und, const sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::MUL_HELPER (small_type s, int unb, int und, const sc_digit *ud, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::DIV_HELPER (small_type s, int unb, int und, const sc_digit *ud, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::MOD_HELPER (small_type us, int unb, int und, const sc_digit *ud, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::AND_HELPER (small_type us, int unb, int und, const sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::OR_HELPER (small_type us, int unb, int und, const sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::XOR_HELPER (small_type us, int unb, int und, const sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd) |
CLASS_TYPE | sc_dt::operator~ (const CLASS_TYPE &u) |
CLASS_TYPE | sc_dt::operator<< (const CLASS_TYPE &u, const CLASS_TYPE &v) |
CLASS_TYPE | sc_dt::operator<< (const CLASS_TYPE &u, int64 v) |
CLASS_TYPE | sc_dt::operator<< (const CLASS_TYPE &u, uint64 v) |
CLASS_TYPE | sc_dt::operator<< (const CLASS_TYPE &u, long v) |
CLASS_TYPE | sc_dt::operator<< (const CLASS_TYPE &u, unsigned long v) |
CLASS_TYPE | sc_dt::operator>> (const CLASS_TYPE &u, const CLASS_TYPE &v) |
CLASS_TYPE | sc_dt::operator>> (const CLASS_TYPE &u, int64 v) |
CLASS_TYPE | sc_dt::operator>> (const CLASS_TYPE &u, uint64 v) |
CLASS_TYPE | sc_dt::operator>> (const CLASS_TYPE &u, long v) |
CLASS_TYPE | sc_dt::operator>> (const CLASS_TYPE &u, unsigned long v) |
bool | sc_dt::operator!= (const CLASS_TYPE &u, const CLASS_TYPE &v) |
bool | sc_dt::operator!= (const CLASS_TYPE &u, int64 v) |
bool | sc_dt::operator!= (int64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator!= (const CLASS_TYPE &u, uint64 v) |
bool | sc_dt::operator!= (uint64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator!= (const CLASS_TYPE &u, long v) |
bool | sc_dt::operator!= (long u, const CLASS_TYPE &v) |
bool | sc_dt::operator!= (const CLASS_TYPE &u, unsigned long v) |
bool | sc_dt::operator!= (unsigned long u, const CLASS_TYPE &v) |
bool | sc_dt::operator<= (const CLASS_TYPE &u, const CLASS_TYPE &v) |
bool | sc_dt::operator<= (const CLASS_TYPE &u, int64 v) |
bool | sc_dt::operator<= (int64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator<= (const CLASS_TYPE &u, uint64 v) |
bool | sc_dt::operator<= (uint64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator<= (const CLASS_TYPE &u, long v) |
bool | sc_dt::operator<= (long u, const CLASS_TYPE &v) |
bool | sc_dt::operator<= (const CLASS_TYPE &u, unsigned long v) |
bool | sc_dt::operator<= (unsigned long u, const CLASS_TYPE &v) |
bool | sc_dt::operator> (const CLASS_TYPE &u, const CLASS_TYPE &v) |
bool | sc_dt::operator> (const CLASS_TYPE &u, int64 v) |
bool | sc_dt::operator> (int64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator> (const CLASS_TYPE &u, uint64 v) |
bool | sc_dt::operator> (uint64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator> (const CLASS_TYPE &u, long v) |
bool | sc_dt::operator> (long u, const CLASS_TYPE &v) |
bool | sc_dt::operator> (const CLASS_TYPE &u, unsigned long v) |
bool | sc_dt::operator> (unsigned long u, const CLASS_TYPE &v) |
bool | sc_dt::operator>= (const CLASS_TYPE &u, const CLASS_TYPE &v) |
bool | sc_dt::operator>= (const CLASS_TYPE &u, int64 v) |
bool | sc_dt::operator>= (int64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator>= (const CLASS_TYPE &u, uint64 v) |
bool | sc_dt::operator>= (uint64 u, const CLASS_TYPE &v) |
bool | sc_dt::operator>= (const CLASS_TYPE &u, long v) |
bool | sc_dt::operator>= (long u, const CLASS_TYPE &v) |
bool | sc_dt::operator>= (const CLASS_TYPE &u, unsigned long v) |
bool | sc_dt::operator>= (unsigned long u, const CLASS_TYPE &v) |
#define ADD_HELPER add_unsigned_friend |
Definition at line 2207 of file sc_unsigned.cc.
#define AND_HELPER and_unsigned_friend |
Definition at line 2212 of file sc_unsigned.cc.
#define CLASS_TYPE sc_unsigned |
Definition at line 2204 of file sc_unsigned.cc.
#define CLASS_TYPE_STR "sc_unsigned" |
Definition at line 2205 of file sc_unsigned.cc.
#define CLASS_TYPE_SUBREF sc_unsigned_subref_r |
Definition at line 2221 of file sc_unsigned.cc.
#define CONVERT_INT | ( | u | ) |
Definition at line 965 of file sc_unsigned.cc.
#define CONVERT_INT64 | ( | u | ) |
Definition at line 974 of file sc_unsigned.cc.
Referenced by sc_dt::operator%(), sc_dt::operator&(), sc_dt::operator+(), sc_dt::operator<(), sc_dt::operator==(), sc_dt::operator^(), and sc_dt::operator|().
#define CONVERT_INT64_2 | ( | u | ) |
Definition at line 979 of file sc_unsigned.cc.
Referenced by sc_dt::operator%(), sc_dt::operator*(), and sc_dt::operator/().
#define CONVERT_INT_2 | ( | u | ) |
Definition at line 970 of file sc_unsigned.cc.
#define CONVERT_LONG | ( | u | ) |
Definition at line 956 of file sc_unsigned.cc.
Referenced by sc_dt::operator%(), sc_dt::operator&(), sc_dt::operator+(), sc_dt::operator<(), sc_dt::operator==(), sc_dt::operator^(), and sc_dt::operator|().
#define CONVERT_LONG_2 | ( | u | ) |
Definition at line 961 of file sc_unsigned.cc.
Referenced by sc_dt::operator%(), sc_dt::operator*(), and sc_dt::operator/().
#define DIV_HELPER div_unsigned_friend |
Definition at line 2210 of file sc_unsigned.cc.
#define DIV_ON_HELPER div_on_help_unsigned |
Definition at line 2226 of file sc_unsigned.cc.
#define IF_SC_SIGNED 0 |
Definition at line 2220 of file sc_unsigned.cc.
#define MOD_HELPER mod_unsigned_friend |
Definition at line 2211 of file sc_unsigned.cc.
#define MOD_ON_HELPER mod_on_help_unsigned |
Definition at line 2227 of file sc_unsigned.cc.
#define MUL_HELPER mul_unsigned_friend |
Definition at line 2209 of file sc_unsigned.cc.
#define MUL_ON_HELPER mul_on_help_unsigned |
Definition at line 2225 of file sc_unsigned.cc.
#define OR_HELPER or_unsigned_friend |
Definition at line 2213 of file sc_unsigned.cc.
#define OTHER_CLASS_TYPE sc_signed |
Definition at line 2222 of file sc_unsigned.cc.
#define OTHER_CLASS_TYPE_SUBREF sc_signed_subref_r |
Definition at line 2223 of file sc_unsigned.cc.
#define SC_UNSIGNED |
Definition at line 2219 of file sc_unsigned.cc.
#define SUB_HELPER sub_unsigned_friend |
Definition at line 2208 of file sc_unsigned.cc.
#define XOR_HELPER xor_unsigned_friend |
Definition at line 2214 of file sc_unsigned.cc.