Commit 3dc26b44 authored by Junekey Jeon's avatar Junekey Jeon Committed by Victor Zverovich

Make a fallback path more compiler-friendly

parent 2e4038bf
......@@ -812,9 +812,8 @@ struct uint128_wrapper {
auto carry = _addcarry_u64(0, low_, n, &low_);
_addcarry_u64(carry, high_, 0, &high_);
#else
auto sum = low_ + n;
high_ += (sum < low_ ? 1 : 0);
low_ = sum;
low_ += n;
high_ += (low_ < n ? 1 : 0);
#endif
return *this;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment