31#ifndef SC_UNSIGNED_INLINES_H
32#define SC_UNSIGNED_INLINES_H
159 bool reversed =
false;
185 if (0) std::cout <<
"@@@@ " <<
nbits <<
" " <<
ndigits <<
" " << low_bit <<
" " << high_bit << std::endl;
203 bool reversed =
false;
227 nbits = num_bits( nb );
230 std::snprintf( msg,
sizeof(msg),
"%s::%s( sc_bv_base ) : nb = %d is not valid",
231 "sc_unsigned",
"sc_unsigned", nb );
251 nbits = num_bits( nb );
254 std::snprintf( msg,
sizeof(msg),
"%s::%s( sc_lv_base ) : nb = %d is not valid",
255 "sc_unsigned",
"sc_unsigned", nb );
318 if (
sizeof(
long) > 4 ) {
320 *to_p++ = ((
int64)from) >> 32;
326 else if ( to_hod > 0 ) {
340 *to_p++ = from >> 32;
355 if (
sizeof(
long) > 4 ) {
357 *to_p++ = ((
uint64)from) >> 32;
363 else if ( to_hod > 0 ) {
373 return *
this = (
int64)from;
379 return *
this = (
uint64)from;
424 for ( ; hod >= 0; --hod ) {
#define SC_DIGIT_COUNT(BIT_WIDTH)
#define SC_FREE_DIGIT(FLAG)
#define SC_BASE_VEC_DIGITS
#define SC_REPORT_ERROR(msg_type, msg)
const char SC_ID_INIT_FAILED_[]
void vector_fill(const sc_digit fill, const int to_hod, sc_digit *to_p)
unsigned long long uint64
void vector_extract(const sc_digit *source_p, sc_digit *destination_p, const int high_bit, const int low_bit)
void vector_copy(const int from_n, const sc_digit *from_p, const int to_n, sc_digit *to_p)
void vector_reverse_bits(sc_digit *target_p, int high_i, int low_i)
sc_digit * get_digits() const
sc_unsigned operator>>(int v) const
sc_unsigned operator<<(int v) const
sc_digit base_vec[SC_BASE_VEC_DIGITS >0?SC_BASE_VEC_DIGITS:1]
sc_digit * get_digits() const
const sc_unsigned & operator=(const sc_unsigned &v)
sc_unsigned operator<<(int v) const
const sc_unsigned & operator>>=(int v)
const sc_unsigned & operator<<=(int v)
sc_unsigned(int nb=sc_length_param().len())
sc_unsigned operator>>(int v) const