gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
sc_signed.cc File Reference
#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_fix.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 "sc_nbfriends.inc"
#include "sc_nbcommon.inc"
#include "sc_signed_bitref.inc"
#include "sc_signed_subref.inc"

Go to the source code of this file.

Namespaces

namespace  sc_core
 
namespace  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_signed
 
#define CLASS_TYPE_STR   "sc_signed"
 
#define ADD_HELPER   add_signed_friend
 
#define SUB_HELPER   sub_signed_friend
 
#define MUL_HELPER   mul_signed_friend
 
#define DIV_HELPER   div_signed_friend
 
#define MOD_HELPER   mod_signed_friend
 
#define AND_HELPER   and_signed_friend
 
#define OR_HELPER   or_signed_friend
 
#define XOR_HELPER   xor_signed_friend
 
#define SC_SIGNED
 
#define IF_SC_SIGNED   1
 
#define CLASS_TYPE_SUBREF   sc_signed_subref_r
 
#define OTHER_CLASS_TYPE   sc_unsigned
 
#define OTHER_CLASS_TYPE_SUBREF   sc_unsigned_subref_r
 
#define MUL_ON_HELPER   mul_on_help_signed
 
#define DIV_ON_HELPER   div_on_help_signed
 
#define MOD_ON_HELPER   mod_on_help_signed
 
#define TO_INTX(RET_TYPE, UP_RET_TYPE)
 

Functions

sc_signed sc_dt::operator+ (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator+ (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator+ (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator- (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator- (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator* (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator* (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator/ (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator/ (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator% (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator% (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator& (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator& (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator| (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator| (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_unsigned &u, const sc_int_base &v)
 
sc_signed sc_dt::operator^ (const sc_int_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator^ (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator<< (const sc_signed &u, const sc_int_base &v)
 
sc_signed sc_dt::operator>> (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator== (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator== (const sc_int_base &u, const sc_signed &v)
 
bool sc_dt::operator!= (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator!= (const sc_int_base &u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator< (const sc_int_base &u, const sc_signed &v)
 
bool sc_dt::operator<= (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator<= (const sc_int_base &u, const sc_signed &v)
 
bool sc_dt::operator> (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator> (const sc_int_base &u, const sc_signed &v)
 
bool sc_dt::operator>= (const sc_signed &u, const sc_int_base &v)
 
bool sc_dt::operator>= (const sc_int_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator+ (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator- (const sc_uint_base &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator- (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator* (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator/ (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator% (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator& (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator| (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator^ (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator<< (const sc_signed &u, const sc_uint_base &v)
 
sc_signed sc_dt::operator>> (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator== (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator== (const sc_uint_base &u, const sc_signed &v)
 
bool sc_dt::operator!= (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator!= (const sc_uint_base &u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator< (const sc_uint_base &u, const sc_signed &v)
 
bool sc_dt::operator<= (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator<= (const sc_uint_base &u, const sc_signed &v)
 
bool sc_dt::operator> (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator> (const sc_uint_base &u, const sc_signed &v)
 
bool sc_dt::operator>= (const sc_signed &u, const sc_uint_base &v)
 
bool sc_dt::operator>= (const sc_uint_base &u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator+ (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator+ (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator+ (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, long v)
 
sc_signed sc_dt::operator+ (long u, const sc_signed &v)
 
sc_signed sc_dt::operator+ (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator+ (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator+ (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator- (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator- (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator- (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, uint64 v)
 
sc_signed sc_dt::operator- (uint64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, long v)
 
sc_signed sc_dt::operator- (long u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator- (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator- (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator- (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator- (const sc_unsigned &u, unsigned long v)
 
sc_signed sc_dt::operator- (unsigned long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator* (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator* (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator* (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator* (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, long v)
 
sc_signed sc_dt::operator* (long u, const sc_signed &v)
 
sc_signed sc_dt::operator* (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator* (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator* (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator* (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator/ (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator/ (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator/ (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, long v)
 
sc_signed sc_dt::operator/ (long u, const sc_signed &v)
 
sc_signed sc_dt::operator/ (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator/ (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator/ (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator/ (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator% (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator% (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator% (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, long v)
 
sc_signed sc_dt::operator% (long u, const sc_signed &v)
 
sc_signed sc_dt::operator% (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator% (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator% (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator% (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator& (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator& (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator& (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, long v)
 
sc_signed sc_dt::operator& (long u, const sc_signed &v)
 
sc_signed sc_dt::operator& (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator& (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator& (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator& (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator| (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator| (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator| (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, long v)
 
sc_signed sc_dt::operator| (long u, const sc_signed &v)
 
sc_signed sc_dt::operator| (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator| (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator| (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator| (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_unsigned &u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, int64 v)
 
sc_signed sc_dt::operator^ (int64 u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_unsigned &u, int64 v)
 
sc_signed sc_dt::operator^ (int64 u, const sc_unsigned &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, uint64 v)
 
sc_signed sc_dt::operator^ (uint64 u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, long v)
 
sc_signed sc_dt::operator^ (long u, const sc_signed &v)
 
sc_signed sc_dt::operator^ (const sc_unsigned &u, long v)
 
sc_signed sc_dt::operator^ (long u, const sc_unsigned &v)
 
sc_signed sc_dt::operator^ (const sc_signed &u, unsigned long v)
 
sc_signed sc_dt::operator^ (unsigned long u, const sc_signed &v)
 
sc_signed sc_dt::operator<< (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator>> (const sc_signed &u, const sc_unsigned &v)
 
sc_signed sc_dt::operator+ (const sc_signed &u)
 
sc_signed sc_dt::operator- (const sc_signed &u)
 
sc_signed sc_dt::operator- (const sc_unsigned &u)
 
bool sc_dt::operator== (const sc_signed &u, const sc_signed &v)
 
bool sc_dt::operator== (const sc_signed &u, int64 v)
 
bool sc_dt::operator== (int64 u, const sc_signed &v)
 
bool sc_dt::operator== (const sc_signed &u, uint64 v)
 
bool sc_dt::operator== (uint64 u, const sc_signed &v)
 
bool sc_dt::operator== (const sc_signed &u, long v)
 
bool sc_dt::operator== (long u, const sc_signed &v)
 
bool sc_dt::operator== (const sc_signed &u, unsigned long v)
 
bool sc_dt::operator== (unsigned long u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, int64 v)
 
bool sc_dt::operator< (int64 u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, uint64 v)
 
bool sc_dt::operator< (uint64 u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, long v)
 
bool sc_dt::operator< (long u, const sc_signed &v)
 
bool sc_dt::operator< (const sc_signed &u, unsigned long v)
 
bool sc_dt::operator< (unsigned long u, const sc_signed &v)
 
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)
 

Macro Definition Documentation

◆ ADD_HELPER

#define ADD_HELPER   add_signed_friend

Definition at line 3929 of file sc_signed.cc.

◆ AND_HELPER

#define AND_HELPER   and_signed_friend

Definition at line 3934 of file sc_signed.cc.

◆ CLASS_TYPE

#define CLASS_TYPE   sc_signed

Definition at line 3926 of file sc_signed.cc.

◆ CLASS_TYPE_STR

#define CLASS_TYPE_STR   "sc_signed"

Definition at line 3927 of file sc_signed.cc.

◆ CLASS_TYPE_SUBREF

#define CLASS_TYPE_SUBREF   sc_signed_subref_r

Definition at line 3943 of file sc_signed.cc.

◆ CONVERT_INT

#define CONVERT_INT ( u)
Value:
small_type u ## s = get_sign(u); \
from_uint(DIGITS_PER_UINT, u ## d, (unsigned int) u);
unsigned int sc_digit
Definition sc_nbdefs.hh:163
#define DIGITS_PER_UINT
Definition sc_nbdefs.hh:195

Definition at line 1255 of file sc_signed.cc.

◆ CONVERT_INT64

◆ CONVERT_INT64_2

◆ CONVERT_INT_2

#define CONVERT_INT_2 ( u)
Value:
from_uint(DIGITS_PER_UINT, u ## d, (unsigned int) u);

Definition at line 1260 of file sc_signed.cc.

◆ CONVERT_LONG

◆ CONVERT_LONG_2

◆ DIV_HELPER

#define DIV_HELPER   div_signed_friend

Definition at line 3932 of file sc_signed.cc.

◆ DIV_ON_HELPER

#define DIV_ON_HELPER   div_on_help_signed

Definition at line 3948 of file sc_signed.cc.

◆ IF_SC_SIGNED

#define IF_SC_SIGNED   1

Definition at line 3942 of file sc_signed.cc.

◆ MOD_HELPER

#define MOD_HELPER   mod_signed_friend

Definition at line 3933 of file sc_signed.cc.

◆ MOD_ON_HELPER

#define MOD_ON_HELPER   mod_on_help_signed

Definition at line 3949 of file sc_signed.cc.

◆ MUL_HELPER

#define MUL_HELPER   mul_signed_friend

Definition at line 3931 of file sc_signed.cc.

◆ MUL_ON_HELPER

#define MUL_ON_HELPER   mul_on_help_signed

Definition at line 3947 of file sc_signed.cc.

◆ OR_HELPER

#define OR_HELPER   or_signed_friend

Definition at line 3935 of file sc_signed.cc.

◆ OTHER_CLASS_TYPE

#define OTHER_CLASS_TYPE   sc_unsigned

Definition at line 3944 of file sc_signed.cc.

◆ OTHER_CLASS_TYPE_SUBREF

#define OTHER_CLASS_TYPE_SUBREF   sc_unsigned_subref_r

Definition at line 3945 of file sc_signed.cc.

◆ SC_SIGNED

#define SC_SIGNED

Definition at line 3941 of file sc_signed.cc.

◆ SUB_HELPER

#define SUB_HELPER   sub_signed_friend

Definition at line 3930 of file sc_signed.cc.

◆ TO_INTX

#define TO_INTX ( RET_TYPE,
UP_RET_TYPE )
Value:
if (sgn == SC_ZERO) \
return 0; \
int vnd = sc_min((int)DIGITS_PER_ ## UP_RET_TYPE, ndigits); \
RET_TYPE v = 0; \
while (--vnd >= 0) \
v = (v << BITS_PER_DIGIT) + digit[vnd]; \
if (sgn == SC_NEG) \
return -v; \
else \
return v;
#define SC_NEG
Definition sc_nbdefs.hh:99
#define SC_ZERO
Definition sc_nbdefs.hh:100
#define BITS_PER_DIGIT
Definition sc_nbdefs.hh:127
const T sc_min(const T &a, const T &b)
Definition functions.hh:59

◆ XOR_HELPER

#define XOR_HELPER   xor_signed_friend

Definition at line 3936 of file sc_signed.cc.


Generated on Mon May 26 2025 09:19:16 for gem5 by doxygen 1.13.2