SPUC
3.0
|
A faster version of the older systemc spuc_uint. More...
#include <spuc_uint.h>
Public Types | |
typedef int_type_size < NEXT_INT_SIZE< I_ >::val > ::uint_type | val_type |
typedef uint64_t | max_val_type |
Public Member Functions | |
spuc_uint () | |
constructors More... | |
spuc_uint (const spuc_uint &a) | |
From exact same type - just copy val. More... | |
spuc_uint (const double &a) | |
spuc_uint (const int8_t &a) | |
spuc_uint (const int16_t &a) | |
spuc_uint (const int32_t &a) | |
spuc_uint (const int64_t &a) | |
spuc_uint (const uint8_t &a) | |
spuc_uint (const uint16_t &a) | |
spuc_uint (const uint32_t &a) | |
spuc_uint (const uint64_t &a) | |
template<int I_1> | |
spuc_uint (const spuc_uint< I_1 > &a) | |
from another spuc_uint<> 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_uint & | operator++ () |
spuc_uint | operator++ (int) |
spuc_uint & | operator-- () |
spuc_uint | operator-- (int) |
spuc_uint & | operator= (const spuc_uint &a) |
template<int I_1> | |
spuc_uint< I_ > & | operator= (const spuc_uint< I_1 > &a) |
spuc_uint< I_+1 > | operator- () const |
sign operator More... | |
spuc_uint< I_ > | operator+ () const |
spuc_uint | operator~ () const |
bit flip More... | |
spuc_uint & | operator= (const int8_t &a) |
spuc_uint & | operator= (const int16_t &a) |
spuc_uint & | operator= (const int32_t &a) |
spuc_uint & | operator= (const int64_t &a) |
spuc_uint & | operator= (const uint8_t &a) |
spuc_uint & | operator= (const uint16_t &a) |
spuc_uint & | operator= (const uint32_t &a) |
spuc_uint & | operator= (const uint64_t &a) |
spuc_uint & | operator= (const double &a) |
template<int I_1> | |
spuc_uint & | operator+= (const spuc_uint< I_1 > &a) |
template<int I_1> | |
spuc_uint & | operator-= (const spuc_uint< I_1 > &a) |
template<int I_1> | |
spuc_uint & | operator*= (const spuc_uint< I_1 > &b) |
spuc_uint & | operator+= (const int8_t &b) |
spuc_uint & | operator-= (const int8_t &b) |
spuc_uint & | operator*= (const int8_t &b) |
spuc_uint & | operator/= (const int8_t &b) |
spuc_uint & | operator+= (const int16_t &b) |
spuc_uint & | operator-= (const int16_t &b) |
spuc_uint & | operator*= (const int16_t &b) |
spuc_uint & | operator/= (const int16_t &b) |
spuc_uint & | operator+= (const int32_t &b) |
spuc_uint & | operator-= (const int32_t &b) |
spuc_uint & | operator*= (const int32_t &b) |
spuc_uint & | operator/= (const int32_t &b) |
spuc_uint & | operator+= (const int64_t &b) |
spuc_uint & | operator-= (const int64_t &b) |
spuc_uint & | operator*= (const int64_t &b) |
spuc_uint & | operator/= (const int64_t &b) |
spuc_uint & | operator+= (const uint8_t &b) |
spuc_uint & | operator-= (const uint8_t &b) |
spuc_uint & | operator*= (const uint8_t &b) |
spuc_uint & | operator/= (const uint8_t &b) |
spuc_uint & | operator+= (const uint16_t &b) |
spuc_uint & | operator-= (const uint16_t &b) |
spuc_uint & | operator*= (const uint16_t &b) |
spuc_uint & | operator/= (const uint16_t &b) |
spuc_uint & | operator+= (const uint32_t &b) |
spuc_uint & | operator-= (const uint32_t &b) |
spuc_uint & | operator*= (const uint32_t &b) |
spuc_uint & | operator/= (const uint32_t &b) |
spuc_uint & | operator+= (const uint64_t &b) |
spuc_uint & | operator-= (const uint64_t &b) |
spuc_uint & | operator*= (const uint64_t &b) |
spuc_uint & | operator/= (const uint64_t &b) |
spuc_uint & | operator*= (const double &a) |
spuc_uint & | operator/= (const double &a) |
spuc_uint & | operator+= (const double &a) |
spuc_uint & | operator-= (const double &a) |
spuc_uint & | operator>>= (const int &a) |
spuc_uint & | operator<<= (const int &a) |
template<typename T > | |
spuc_uint & | operator&= (const T &l) |
template<typename T > | |
spuc_uint & | operator|= (const T &l) |
template<typename T > | |
spuc_uint & | 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_uint.
typedef uint64_t SPUC::spuc_uint< I_ >::max_val_type |
typedef int_type_size<NEXT_INT_SIZE<I_>::val>::uint_type SPUC::spuc_uint< I_ >::val_type |
|
inline |
constructors
Referenced by SPUC::spuc_uint< I_ >::operator=().
|
inline |
From exact same type - just copy val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
from another spuc_uint<>
References SPUC::spuc_uint< I_ >::val.
|
inline |
Conversions.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References SPUC::spuc_uint< I_ >::val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References SPUC::spuc_uint< I_ >::val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
sign operator
References SPUC::spuc_uint< 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_uint< I_ >::getVal().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bit flip
References SPUC::spuc_uint< I_ >::val.
|
inline |
|
inline |
|
inline |
Referenced by SPUC::operator*(), and SPUC::spuc_uint< I_ >::print().
|
static |
val_type SPUC::spuc_uint< I_ >::val |