protected:
FloatingPoint createFP(void) const {
// Rotate the LSB into the sign so that NaN is the last value
- const BitVector value =
- d_state.logicalRightShift(1) | d_state.leftShift(d_state.getSize() - 1);
+ uint64_t vone = 1;
+ uint64_t vmax = d_state.getSize() - 1;
+ BitVector bva =
+ d_state.logicalRightShift(BitVector(d_state.getSize(), vone));
+ BitVector bvb = d_state.leftShift(BitVector(d_state.getSize(), vmax));
+ const BitVector value = (bva | bvb);
return FloatingPoint(d_e, d_s, value);
}