SPUC
3.0
|
A faster version of the older systemc spuc_int. More...
#include <spuc_int.h>
Public Types | |
typedef int_type_size < NEXT_INT_SIZE< I_ >::val > ::int_type | val_type |
typedef int64_t | max_val_type |
Public Member Functions | |
spuc_int () | |
constructors More... | |
spuc_int (const spuc_int &a) | |
From exact same type - just copy val. More... | |
spuc_int (const double &a) | |
spuc_int (const int8_t &a) | |
spuc_int (const int16_t &a) | |
spuc_int (const int32_t &a) | |
spuc_int (const int64_t &a) | |
spuc_int (const uint8_t &a) | |
spuc_int (const uint16_t &a) | |
spuc_int (const uint32_t &a) | |
spuc_int (const uint64_t &a) | |
template<int I_1> | |
spuc_int (const spuc_int< I_1 > &a) | |
from another spuc_int<> More... | |
val_type | getVal () const |
void | from_int (int64_t x) |
Conversions. More... | |
double | to_double (void) const |
int64_t | to_int (void) const |
bool | operator! () const |
operator int64_t () const | |
spuc_int & | operator++ () |
spuc_int | operator++ (int) |
spuc_int & | operator-- () |
spuc_int | operator-- (int) |
spuc_int & | operator= (const spuc_int &a) |
template<int I_1> | |
spuc_int< I_ > & | operator= (const spuc_int< I_1 > &a) |
spuc_int< I_+1 > | operator- () const |
sign operator More... | |
spuc_int< I_ > | operator+ () const |
spuc_int | operator~ () const |
bit flip More... | |
spuc_int & | operator= (const int8_t &a) |
spuc_int & | operator= (const int16_t &a) |
spuc_int & | operator= (const int32_t &a) |
spuc_int & | operator= (const int64_t &a) |
spuc_int & | operator= (const uint8_t &a) |
spuc_int & | operator= (const uint16_t &a) |
spuc_int & | operator= (const uint32_t &a) |
spuc_int & | operator= (const uint64_t &a) |
spuc_int & | operator= (const double &a) |
template<int I_1> | |
spuc_int & | operator+= (const spuc_int< I_1 > &a) |
template<int I_1> | |
spuc_int & | operator-= (const spuc_int< I_1 > &a) |
template<int I_1> | |
spuc_int & | operator*= (const spuc_int< I_1 > &b) |
spuc_int & | operator+= (const int8_t &b) |
spuc_int & | operator-= (const int8_t &b) |
spuc_int & | operator*= (const int8_t &b) |
spuc_int & | operator/= (const int8_t &b) |
spuc_int & | operator+= (const int16_t &b) |
spuc_int & | operator-= (const int16_t &b) |
spuc_int & | operator*= (const int16_t &b) |
spuc_int & | operator/= (const int16_t &b) |
spuc_int & | operator+= (const int32_t &b) |
spuc_int & | operator-= (const int32_t &b) |
spuc_int & | operator*= (const int32_t &b) |
spuc_int & | operator/= (const int32_t &b) |
spuc_int & | operator+= (const int64_t &b) |
spuc_int & | operator-= (const int64_t &b) |
spuc_int & | operator*= (const int64_t &b) |
spuc_int & | operator/= (const int64_t &b) |
spuc_int & | operator+= (const uint8_t &b) |
spuc_int & | operator-= (const uint8_t &b) |
spuc_int & | operator*= (const uint8_t &b) |
spuc_int & | operator/= (const uint8_t &b) |
spuc_int & | operator+= (const uint16_t &b) |
spuc_int & | operator-= (const uint16_t &b) |
spuc_int & | operator*= (const uint16_t &b) |
spuc_int & | operator/= (const uint16_t &b) |
spuc_int & | operator+= (const uint32_t &b) |
spuc_int & | operator-= (const uint32_t &b) |
spuc_int & | operator*= (const uint32_t &b) |
spuc_int & | operator/= (const uint32_t &b) |
spuc_int & | operator+= (const uint64_t &b) |
spuc_int & | operator-= (const uint64_t &b) |
spuc_int & | operator*= (const uint64_t &b) |
spuc_int & | operator/= (const uint64_t &b) |
spuc_int & | operator*= (const double &a) |
spuc_int & | operator/= (const double &a) |
spuc_int & | operator+= (const double &a) |
spuc_int & | operator-= (const double &a) |
spuc_int & | operator>>= (const int &a) |
spuc_int & | operator<<= (const int &a) |
template<typename T > | |
spuc_int & | operator&= (const T &l) |
template<typename T > | |
spuc_int & | operator|= (const T &l) |
template<typename T > | |
spuc_int & | operator^= (const T &l) |
void | print (std::ostream &os=::std::cout) const |
Public Attributes | |
val_type | val |
Static Public Attributes | |
static const int | INTEGER_BITS = I_ |
A faster version of the older systemc spuc_int.
typedef int64_t SPUC::spuc_int< I_ >::max_val_type |
typedef int_type_size<NEXT_INT_SIZE<I_>::val>::int_type SPUC::spuc_int< I_ >::val_type |
|
inline |
constructors
Referenced by SPUC::spuc_int< I_ >::operator=().
|
inline |
From exact same type - just copy val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
from another spuc_int<>
References SPUC::spuc_int< I_ >::val.
|
inline |
Conversions.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References SPUC::spuc_int< I_ >::val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References SPUC::spuc_int< I_ >::val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
sign operator
References SPUC::spuc_int< I_ >::val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
assignment operator from another size, use copy constructor, then copy val;
References SPUC::spuc_int< I_ >::getVal().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bit flip
References SPUC::spuc_int< I_ >::val.
|
inline |
|
inline |
Referenced by SPUC::operator!=(), SPUC::operator==(), SPUC::operator>(), and SPUC::operator>=().
|
inline |
|
static |
val_type SPUC::spuc_int< I_ >::val |
Referenced by SPUC::operator&(), SPUC::operator*(), SPUC::spuc_int< I_ >::operator*=(), SPUC::spuc_int< I_ >::operator+=(), SPUC::spuc_int< I_ >::operator-(), SPUC::operator/(), SPUC::operator<(), SPUC::operator==(), SPUC::operator^(), SPUC::operator|(), SPUC::spuc_int< I_ >::operator~(), and SPUC::spuc_int< I_ >::spuc_int().