Searched refs:shift (Results 1 - 25 of 30) sorted by relevance

12

/gem5/src/base/
H A Dcondcodes.hh44 int shift = width - 1; local
45 return ((~(dest >> shift) & 1) +
46 ((src1 >> shift) & 1) +
47 ((src2 >> shift) & 1)) & 0x2;
56 int shift = width - 1; local
57 return ((src1 ^ ~src2) & (src1 ^ dest)) & (1ULL << shift);
H A Dsat_counter.hh173 operator>>=(const int& shift) argument
175 this->counter >>= shift;
181 operator<<=(const int& shift) argument
183 this->counter <<= shift;
H A Dtypes.hh127 constexpr Cycles operator <<(const int32_t shift) const
128 { return Cycles(c << shift); }
130 constexpr Cycles operator >>(const int32_t shift) const
131 { return Cycles(c >> shift); }
/gem5/util/
H A Dprotolib.py109 shift = 0
118 result |= ((b & 0x7f) << shift)
127 shift += 7
128 if shift >= 64:
/gem5/src/arch/x86/insts/
H A Dmicroop.hh109 unsigned shift = i * ChunkSize * 8; local
110 flags |= (std::bitset<Num_Flags>(setFlags >> shift) << shift);
/gem5/src/mem/cache/prefetch/
H A Dindirect_memory.hh86 int shift; member in struct:IndirectMemoryPrefetcher::PrefetchTableEntry
99 enabled(false), index(0), baseAddr(0), shift(0),
111 shift = 0;
H A Dindirect_memory.cc151 (pt_entry->index << pt_entry->shift);
207 for (int shift : shiftValues) {
208 ba_array[idx] = miss_addr - (entry->idx1 << shift);
229 for (int shift : shiftValues) {
230 if (ba_array[idx] == (miss_addr - (entry->idx2 << shift))) {
236 pt_entry->shift = shift;
256 (pt_entry.index << pt_entry.shift)) {
/gem5/ext/systemc/src/sysc/datatypes/misc/
H A Dsc_concatref.h50 // Andy Goodrich: fix of shift rhs possibilities to include "int".
511 // it is necessary to disambiguate the use of the shift operators. We do
513 // integer-based result use a cast to uint64 before performing the shift.
515 inline const sc_unsigned operator << (const sc_concatref& target, uint64 shift) argument
517 return target.value() << (int)shift;
520 inline const sc_unsigned operator << (const sc_concatref& target, int64 shift) argument
522 return target.value() << (int)shift;
526 const sc_concatref& target, unsigned long shift )
528 return target.value() << (int)shift;
532 const sc_concatref& target, int shift )
548 operator >>(const sc_concatref& target, uint64 shift) argument
553 operator >>(const sc_concatref& target, int64 shift) argument
[all...]
/gem5/src/systemc/ext/dt/misc/
H A Dsc_concatref.hh50 // Andy Goodrich: fix of shift rhs possibilities to include "int".
463 // it is necessary to disambiguate the use of the shift operators. We do
465 // integer-based result use a cast to uint64 before performing the shift.
468 operator << (const sc_concatref &target, uint64 shift) argument
470 return target.value() << (int)shift;
474 operator << (const sc_concatref &target, int64 shift) argument
476 return target.value() << (int)shift;
480 operator << (const sc_concatref &target, unsigned long shift) argument
482 return target.value() << (int)shift;
486 operator << (const sc_concatref &target, int shift) argument
492 operator <<(const sc_concatref &target, unsigned int shift) argument
498 operator <<(const sc_concatref &target, long shift) argument
504 operator >>(const sc_concatref &target, uint64 shift) argument
510 operator >>(const sc_concatref &target, int64 shift) argument
516 operator >>(const sc_concatref &target, unsigned long shift) argument
522 operator >>(const sc_concatref &target, int shift) argument
528 operator >>(const sc_concatref &target, unsigned int shift) argument
534 operator >>(const sc_concatref &target, long shift) argument
[all...]
/gem5/src/arch/arm/insts/
H A Dpred_inst.cc59 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
73 machInst.shiftSize, (ArmShiftType)(uint32_t)machInst.shift,
101 op2, shift, 0, shiftType, 0);
H A Dcrypto.hh90 uint32_t ror(uint32_t x, uint8_t shift) argument
92 return (x >> shift) | (x << (32 - shift));
H A Dpred_inst.hh265 uint32_t shift; member in class:ArmISA::PredIntOp
270 shift_size(machInst.shiftSize), shift(machInst.shift)
319 IntRegIndex dest, op1, op2, shift; member in class:ArmISA::DataRegRegOp
326 dest(_dest), op1(_op1), op2(_op2), shift(_shift),
H A Dfplib.cc96 lsl16(uint16_t x, uint32_t shift) argument
98 return shift < 16 ? x << shift : 0;
102 lsr16(uint16_t x, uint32_t shift) argument
104 return shift < 16 ? x >> shift : 0;
108 lsl32(uint32_t x, uint32_t shift) argument
110 return shift < 32 ? x << shift : 0;
114 lsr32(uint32_t x, uint32_t shift) argument
120 lsl64(uint64_t x, uint32_t shift) argument
126 lsr64(uint64_t x, uint32_t shift) argument
132 lsl128(uint64_t *r0, uint64_t *r1, uint64_t x0, uint64_t x1, uint32_t shift) argument
150 lsr128(uint64_t *r0, uint64_t *r1, uint64_t x0, uint64_t x1, uint32_t shift) argument
219 int shift; local
227 mnt <<= shift; local
237 int shift; local
245 mnt <<= shift; local
255 int shift; local
263 mnt <<= shift; local
275 int shift; local
290 x0 <<= shift; local
[all...]
/gem5/src/systemc/tests/systemc/misc/stars/star111657/
H A Dio_controller1.h125 SC_CTHREAD(shift, clk_mii.pos());
143 void shift();
H A Dstar111657.cpp100 void io_controller_m::shift(){ function in class:io_controller_m
/gem5/src/cpu/pred/
H A Dmultiperspective_perceptron.hh510 // so the number of bits between a and am is the number to shift
545 int shift = p2; variable
562 x <<= shift; variable
637 int shift = p2; variable
645 x <<= shift; variable
652 x ^= (!!(recency_stack[i] & (1 << shift))) << k;
700 int shift = p2; variable
708 x <<= shift; variable
717 x ^= (!!(path_history[i + j] & (1 << shift))) << j;
722 x ^= (!!(path_history[i] & (1 << shift))) <<
769 int shift = p3; variable
773 x <<= shift; variable
795 int shift = p2; variable
809 x <<= shift; variable
816 x <<= shift; variable
868 int shift = p3; variable
876 x <<= shift; variable
906 int shift = 0; variable
987 int shift = p3; variable
999 x <<= shift; variable
1006 x <<= shift; variable
[all...]
H A Dstatistical_corrector.hh86 void initLocalHistory(int ordinal, int numHistories, int shift) argument
89 shifts[ordinal - 1] = shift;
/gem5/src/dev/ps2/
H A Dtypes.cc91 bool shift = tmp >> 8; local
94 if (!cur_shift && shift) {
100 if (cur_shift && !shift) {
/gem5/src/arch/power/insts/
H A Dinteger.hh123 * Class for integer operations with a shift.
168 rotateValue(uint32_t rs, uint32_t shift) const
170 uint32_t n = shift & 31;
/gem5/src/systemc/dt/fx/
H A Dscfx_rep.cc761 int shift = mantissa0_size - msb;
767 if (shift == 0) {
774 } else if (shift < 0) {
775 m0 = (m_mant[m_msw] >> -shift) & ~(1 << mantissa0_size);
776 m1 = m_mant[m_msw] << (bits_in_word + shift);
778 m1 |= m_mant[m_msw - 1] >> -shift;
779 guard = (m_mant[m_msw - 1] >> (-shift - 1)) & 1;
782 m0 = (m_mant[m_msw] << shift) & ~(1 << mantissa0_size);
784 m0 |= m_mant[m_msw - 1] >> (bits_in_word - shift);
785 m1 = m_mant[m_msw - 1] << shift;
[all...]
/gem5/src/arch/mips/
H A Dutility.cc122 int shift = (cc_idx == 0) ? 23 : cc_idx + 24; local
123 bool cc_val = (fcsr >> shift) & 0x00000001;
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dscfx_rep.cpp827 int shift = mantissa0_size - msb;
833 if( shift == 0 )
843 else if( shift < 0 )
845 m0 = ( m_mant[m_msw] >> -shift ) & ~( 1 << mantissa0_size );
846 m1 = m_mant[m_msw] << ( bits_in_word + shift );
849 m1 |= m_mant[m_msw - 1] >> -shift;
850 guard = ( m_mant[m_msw - 1] >> ( -shift - 1 ) ) & 1;
855 m0 = ( m_mant[m_msw] << shift ) & ~( 1 << mantissa0_size );
858 m0 |= m_mant[m_msw - 1] >> ( bits_in_word - shift );
859 m1 = m_mant[m_msw - 1] << shift;
[all...]
/gem5/src/arch/x86/
H A Dinterrupts.cc73 int shift = ((conf & 0x8) >> 1) | (conf & 0x3); local
74 shift = (shift + 1) % 8;
75 return 1 << shift;
/gem5/src/systemc/ext/dt/bit/
H A Dsc_bit_proxies.hh2707 int shift = r_len % SC_DIGIT_SIZE; local
2709 if (shift == 0) {
2712 // border <= i < size() && shift != 0
2713 int nshift = SC_DIGIT_SIZE - shift;
2716 return ((r.get_word(i) & rl_mask) | (l.get_word(0) << shift));
2718 // border < i < size() && shift != 0
2720 return ((l.get_word(j - 1) >> nshift) | (l.get_word(j) << shift));
2742 int shift = r_len % SC_DIGIT_SIZE; local
2744 if (shift == 0) {
2748 // border <= i < size() && shift !
2780 int shift = r_len % SC_DIGIT_SIZE; local
2815 int shift = r_len % SC_DIGIT_SIZE; local
[all...]
/gem5/ext/systemc/src/sysc/datatypes/bit/
H A Dsc_bit_proxies.h3063 int shift = r_len % SC_DIGIT_SIZE; local
3065 if( shift == 0 ) {
3068 // border <= i < size() && shift != 0
3069 int nshift = SC_DIGIT_SIZE - shift;
3072 return ( (r.get_word( i ) & rl_mask) | (l.get_word( 0 ) << shift) );
3074 // border < i < size() && shift != 0
3076 return ( (l.get_word( j - 1 ) >> nshift) | (l.get_word( j ) << shift) );
3099 int shift = r_len % SC_DIGIT_SIZE; local
3101 if( shift == 0 ) {
3105 // border <= i < size() && shift !
3139 int shift = r_len % SC_DIGIT_SIZE; local
3175 int shift = r_len % SC_DIGIT_SIZE; local
[all...]

Completed in 74 milliseconds

12