/gem5/ext/systemc/src/sysc/datatypes/int/ |
H A D | sc_nbcommon.inc | 52 sc_value_base(), sgn(), nbits(), ndigits(), digit() 56 nbits = num_bits( nb ); 63 ndigits = DIV_CEIL(nbits); 75 sc_value_base(v), sgn(v.sgn), nbits(v.nbits), ndigits(v.ndigits), digit() 87 sc_value_base(v), sgn(v.sgn), nbits(num_bits(v.nbits)), ndigits(), digit() 92 ndigits = DIV_CEIL(nbits); 99 copy_digits(v.nbits, v.ndigits, v.digit); 104 sc_value_base(), sgn(), nbits(), ndigit [all...] |
H A D | sc_unsigned.cpp | 117 i, nbits - 2 ); 128 l, r, nbits-2, nbits-2 ); 156 end_i = (low_i + nbits - 2) / BITS_PER_DIGIT; 186 int real_bits; // nbits - 1. 192 real_bits = nbits - 1; // Remove that extra sign bit. 264 mask = ~(-1 << nbits); 429 if ( (digit[i] & ~(-1 << ((nbits-1) % BITS_PER_DIGIT))) == 430 (sc_digit)~(-1 << ((nbits-1) % BITS_PER_DIGIT))) 446 for ( i = 0; i < nbits [all...] |
H A D | sc_signed.cpp | 112 "0 <= index <= %d", i, nbits - 1 ); 123 l, r, nbits-1, nbits-1 ); 152 end_i = (low_i + nbits - 1) / BITS_PER_DIGIT; 186 high_i = low_i + nbits - 1; 256 mask = ~(-1 << nbits); 323 mask = ~(-1 << nbits) << left_shift; 385 if ( nbits < 64 ) 388 result = result & ~(mask << nbits); 443 if ( (current & ~(-1 << (nbits [all...] |
H A D | sc_signed_subref.inc | 174 int l = sc_min( m_left, v.nbits - 1 + m_right ); 192 int l = sc_min( m_left, v.nbits - 1 + m_right ); 339 bool sign = src.test(src.nbits-1); 340 l = src.nbits - (low_i+1); 361 l = src.nbits - (low_i+2);
|
H A D | sc_unsigned_subref.inc | 175 int l = sc_min( m_left, v.nbits - 1 + m_right ); 192 int l = sc_min( m_left, v.nbits - 1 + m_right ); 338 bool sign = src.test(src.nbits-1); 339 l = src.nbits - (low_i+1); 360 l = src.nbits - (low_i+2);
|
H A D | sc_unsigned_bitref.inc | 139 if ( low_i < src.nbits )
|
H A D | sc_signed.h | 1169 { if ( xz_present_p ) *xz_present_p = false; return nbits; } 1192 { if ( i < 0 || i >= nbits ) invalid_index(i); } 1246 if ( l < 0 || r >= nbits ) invalid_range(l,r); 1250 if ( r < 0 || l >= nbits ) invalid_range(l,r); 1328 int length() const { return nbits; } // Bit width. 2162 int nbits; // Shortened as nb. member in class:sc_dt::sc_signed 2195 { copy_digits_signed(sgn, nbits, ndigits, digit, nb, nd, d); } 2203 { sgn = convert_signed_2C_to_SM(nbits, ndigits, digit); } 2206 { sgn = convert_signed_SM_to_2C_to_SM(sgn, nbits, ndigits, digit); } 2343 nbits [all...] |
H A D | sc_unsigned.h | 1071 { if ( xz_present_p ) *xz_present_p = false; return nbits-1; } 1094 { if ( (i < 0) || (i >= nbits-1) ) invalid_index(i); } 1148 if ( (l < 0) || (r >= nbits-1) ) invalid_range(l,r); 1152 if ( (r < 0) || (l >= nbits-1) ) invalid_range(l,r); 1228 int length() const { return nbits - 1; } // Bit width. 1951 int nbits; // Shortened as nb. member in class:sc_dt::sc_unsigned 1984 { copy_digits_unsigned(sgn, nbits, ndigits, digit, nb, nd, d); } 1992 { sgn = convert_unsigned_2C_to_SM(nbits, ndigits, digit); } 1995 { sgn = convert_unsigned_SM_to_2C_to_SM(sgn, nbits, ndigits, digit); } 2153 nbits [all...] |
/gem5/src/cpu/pred/ |
H A D | loop_predictor.hh | 98 * @param nbits Counter width. 100 static inline void unsignedCtrUpdate(uint8_t &ctr, bool up, unsigned nbits) argument 102 assert(nbits <= sizeof(uint8_t) << 3); 104 if (ctr < ((1 << nbits) - 1)) 111 static inline void signedCtrUpdate(int8_t &ctr, bool up, unsigned nbits) argument 114 if (ctr < ((1 << (nbits - 1)) - 1)) 117 if (ctr > -(1 << (nbits - 1)))
|
H A D | statistical_corrector.hh | 56 inline void ctrUpdate(T & ctr, bool taken, int nbits) { argument 57 assert(nbits <= sizeof(T) << 3); 58 if (nbits > 0) { 60 if (ctr < ((1 << (nbits - 1)) - 1)) 63 if (ctr > -(1 << (nbits - 1)))
|
H A D | tage_base.cc | 256 TAGEBase::ctrUpdate(T & ctr, bool taken, int nbits) argument 258 assert(nbits <= sizeof(T) << 3); 260 if (ctr < ((1 << (nbits - 1)) - 1)) 263 if (ctr > -(1 << (nbits - 1))) 269 template void TAGEBase::ctrUpdate(int8_t & ctr, bool taken, int nbits); 270 template void TAGEBase::ctrUpdate(int & ctr, bool taken, int nbits); 274 TAGEBase::unsignedCtrUpdate(uint8_t & ctr, bool up, unsigned nbits) argument 276 assert(nbits <= sizeof(uint8_t) << 3); 278 if (ctr < ((1 << nbits) - 1))
|
H A D | tage_base.hh | 224 * @param nbits Counter width. 227 static void ctrUpdate(T & ctr, bool taken, int nbits); 234 * @param nbits Counter width. 236 static void unsignedCtrUpdate(uint8_t & ctr, bool up, unsigned nbits);
|
/gem5/src/systemc/dt/int/ |
H A D | sc_nbcommon.inc | 52 sc_value_base(), sgn(), nbits(), ndigits(), digit() 56 nbits = num_bits(nb); 61 ndigits = DIV_CEIL(nbits); 73 sc_value_base(v), sgn(v.sgn), nbits(v.nbits), ndigits(v.ndigits), digit() 85 sc_value_base(v), sgn(v.sgn), nbits(num_bits(v.nbits)), ndigits(), digit() 90 ndigits = DIV_CEIL(nbits); 97 copy_digits(v.nbits, v.ndigits, v.digit); 102 sc_value_base(), sgn(), nbits(), ndigit [all...] |
H A D | sc_unsigned.cc | 135 "0 <= index <= " << (nbits-2); 146 " violates either (" << (nbits - 2) << " >= left >= 0) or " 147 "(" << (nbits-2) << " >= right >= 0)"; 176 end_i = (low_i + nbits - 2) / BITS_PER_DIGIT; 207 int real_bits; // nbits - 1. 211 real_bits = nbits - 1; // Remove that extra sign bit. 263 mask = ~(~0U << nbits); 406 if ((digit[i] & ~(~0U << ((nbits - 1) % BITS_PER_DIGIT))) == 407 static_cast<sc_digit>(~(~0U << ((nbits - 1) % BITS_PER_DIGIT)))) { 426 for (i = 0; i < nbits [all...] |
H A D | sc_signed.cc | 126 "0 <= index <= " << (nbits - 1); 137 " violates either (" << (nbits-1) << " >= left >= 0) or " 138 "(" << (nbits-1) << " >= right >= 0)"; 167 end_i = (low_i + nbits - 1) / BITS_PER_DIGIT; 198 high_i = low_i + nbits - 1; 248 mask = ~(~0U << nbits); 299 mask = ~(~0U << nbits) << left_shift; 345 if (nbits < 64) { 347 result = result & ~(mask << nbits); 405 if ((current & ~(~0U << (nbits [all...] |
H A D | sc_signed_subref.inc | 174 int l = sc_min(m_left, v.nbits - 1 + m_right); 194 int l = sc_min(m_left, v.nbits - 1 + m_right); 337 bool sign = src.test(src.nbits - 1); 338 l = src.nbits - (low_i + 1); 359 l = src.nbits - (low_i + 2);
|
H A D | sc_unsigned_subref.inc | 174 int l = sc_min(m_left, v.nbits - 1 + m_right); 193 int l = sc_min(m_left, v.nbits - 1 + m_right); 329 bool sign = src.test(src.nbits - 1); 330 l = src.nbits - (low_i + 1); 351 l = src.nbits - (low_i + 2);
|
H A D | sc_unsigned_bitref.inc | 142 if (low_i < src.nbits)
|
/gem5/src/arch/generic/ |
H A D | vec_pred_reg.hh | 310 get_bits(size_t idx, uint8_t nbits) const 312 assert(nbits > 0 && nbits <= 8 && (idx + nbits - 1) < NumBits); 314 idx = idx + nbits - 1; 315 for (int i = 0; i < nbits; ++i, --idx) { 325 set_bits(size_t idx, uint8_t nbits, uint8_t bval) argument 327 assert(nbits > 0 && nbits <= 8 && (idx + nbits [all...] |
/gem5/src/base/ |
H A D | bitfield.hh | 57 * Generate a 64-bit mask of 'nbits' 1s, right justified. 60 mask(int nbits) argument 62 return (nbits == 64) ? (uint64_t)-1LL : (1ULL << nbits) - 1; 74 int nbits = first - last + 1; local 75 return (val >> last) & mask(nbits);
|
/gem5/src/arch/mips/ |
H A D | dsp.cc | 1131 int nbits = SIMD_NBITS[fmt]; local 1136 *reg |= (int32_t)bits(values_ptr[i], nbits - 1, 0) << nbits * i; 1143 int nbits = SIMD_NBITS[fmt]; local 1148 uint64_t tmp = (uint64_t)bits(reg, nbits * (i + 1) - 1, nbits * i); 1155 (uint64_t)bits(reg, nbits * (i + 1) - 1, nbits * i);
|
/gem5/src/systemc/ext/dt/int/ |
H A D | sc_signed.hh | 1069 return nbits; 1091 if (i < 0 || i >= nbits) 1148 if (l < 0 || r >= nbits) 1151 if (r < 0 || l >= nbits) 1222 int length() const { return nbits; } // Bit width. 2287 int nbits; // Shortened as nb. member in class:sc_dt::sc_signed 2320 copy_digits_signed(sgn, nbits, ndigits, digit, nb, nd, d); 2330 sgn = convert_signed_2C_to_SM(nbits, ndigits, digit); 2336 sgn = convert_signed_SM_to_2C_to_SM(sgn, nbits, ndigits, digit); 2471 nbits [all...] |
H A D | sc_unsigned.hh | 980 return nbits - 1; 1002 if ((i < 0) || (i >= nbits - 1)) 1056 if ((l < 0) || (r >= nbits - 1)) 1059 if ((r < 0) || (l >= nbits - 1)) 1126 int length() const { return nbits - 1; } // Bit width. 1967 int nbits; // Shortened as nb. member in class:sc_dt::sc_unsigned 2000 copy_digits_unsigned(sgn, nbits, ndigits, digit, nb, nd, d); 2010 sgn = convert_unsigned_2C_to_SM(nbits, ndigits, digit); 2016 sgn = convert_unsigned_SM_to_2C_to_SM(sgn, nbits, ndigits, digit); 2164 nbits [all...] |
/gem5/ext/systemc/src/sysc/datatypes/misc/ |
H A D | sc_concatref.h | 244 result_p->nbits = result_p->num_bits(m_len); 245 result_p->ndigits = DIV_CEIL(result_p->nbits);
|
/gem5/src/systemc/ext/dt/misc/ |
H A D | sc_concatref.hh | 255 result_p->nbits = result_p->num_bits(m_len); 256 result_p->ndigits = DIV_CEIL(result_p->nbits);
|