}
Indirection &operator=(Indirection &&that) {
CHECK(that.p_ && "move assignment of null Indirection to Indirection");
- auto tmp = p_;
+ auto tmp{p_};
p_ = that.p_;
that.p_ = tmp;
return *this;
}
Indirection &operator=(Indirection &&that) {
CHECK(that.p_ && "move assignment of null Indirection to Indirection");
- auto tmp = p_;
+ auto tmp{p_};
p_ = that.p_;
that.p_ = tmp;
return *this;
yFraction = yFraction.NOT();
carry = roundingBits.Negate();
}
- auto sum = fraction.AddUnsigned(yFraction, carry);
+ auto sum{fraction.AddUnsigned(yFraction, carry)};
fraction = sum.value;
if (isNegative == yIsNegative && sum.carry) {
roundingBits.ShiftRight(sum.value.BTEST(0));
result.value.word_ = InfinityWord(isNegative);
}
} else {
- auto product = GetFraction().MultiplyUnsigned(y.GetFraction());
+ auto product{GetFraction().MultiplyUnsigned(y.GetFraction())};
std::int64_t exponent{CombineExponents(y, false)};
if (exponent < 1) {
int rshift = 1 - exponent;
if (!fraction.IBITS(0, rshift).IsZero()) {
result.flags.set(RealFlag::Inexact);
}
- auto truncated = result.value.ConvertUnsigned(fraction.SHIFTR(rshift));
+ auto truncated{result.value.ConvertUnsigned(fraction.SHIFTR(rshift))};
if (truncated.overflow) {
result.flags.set(RealFlag::Overflow);
} else {
if (result.flags.test(RealFlag::Overflow)) {
result.value = result.value.HUGE();
} else if (isNegative) {
- auto negated = result.value.Negate();
+ auto negated{result.value.Negate()};
if (negated.overflow) {
result.flags.set(RealFlag::Overflow);
result.value = result.value.HUGE();
if (rshift >= fraction.bits + 2) {
sticky_ = !fraction.IsZero();
} else {
- auto mask = fraction.MASKR(rshift - 2);
+ auto mask{fraction.MASKR(rshift - 2)};
sticky_ = !fraction.IAND(mask).IsZero();
}
}