45 typedef std::bitset<std::numeric_limits<unsigned long long>::digits>
VectorMask;
52 void init(uint64_t *_tcnt, uint32_t _numStages=0)
61 "Can't allocate resource because it is busy!!!");
96 uint32_t ai = *(uint32_t *)&x;
98 uint32_t
s = (ai >> 31) & 0x1;
99 uint32_t exp = (ai >> 23) & 0xff;
100 uint32_t mant = (ai >> 0) & 0x7fffff;
102 if (exp == 0 || exp <= 0x70) {
105 }
else if (exp == 0xff) {
107 }
else if (exp >= 0x8f) {
111 exp = exp - 0x7f + 0x0f;
122 operator float()
const 124 uint32_t
s = (val >> 15) & 0x1;
125 uint32_t exp = (val >> 10) & 0x1f;
126 uint32_t mant = (val >> 0) & 0x3ff;
131 }
else if (exp == 0x1f) {
134 exp = exp - 0x0f + 0x7f;
140 val1 |= (mant << 13);
142 return *(
float*)&val1;
146 #endif // __MISC_HH__
std::bitset< std::numeric_limits< unsigned long long >::digits > VectorMask
std::shared_ptr< GPUDynInst > GPUDynInstPtr
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
void preset(uint32_t delay)
void init(uint64_t *_tcnt, uint32_t _numStages=0)
Float16(const Float16 &x)