mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Make a fallback path more compiler-friendly
This commit is contained in:
committed by
Victor Zverovich
parent
2e4038bf51
commit
3dc26b44d3
@ -812,9 +812,8 @@ struct uint128_wrapper {
|
|||||||
auto carry = _addcarry_u64(0, low_, n, &low_);
|
auto carry = _addcarry_u64(0, low_, n, &low_);
|
||||||
_addcarry_u64(carry, high_, 0, &high_);
|
_addcarry_u64(carry, high_, 0, &high_);
|
||||||
#else
|
#else
|
||||||
auto sum = low_ + n;
|
low_ += n;
|
||||||
high_ += (sum < low_ ? 1 : 0);
|
high_ += (low_ < n ? 1 : 0);
|
||||||
low_ = sum;
|
|
||||||
#endif
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user