mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 19:54:46 +02:00
Replace noexcept with FMT_NOEXCEPT
This commit is contained in:
committed by
Victor Zverovich
parent
9181983483
commit
76336b4f63
@@ -792,13 +792,13 @@ struct uint128_wrapper {
|
|||||||
uint64_t high_;
|
uint64_t high_;
|
||||||
uint64_t low_;
|
uint64_t low_;
|
||||||
|
|
||||||
constexpr uint128_wrapper(uint64_t high, uint64_t low) noexcept
|
constexpr uint128_wrapper(uint64_t high, uint64_t low) FMT_NOEXCEPT
|
||||||
: high_{high}, low_{low} {}
|
: high_{high}, low_{low} {}
|
||||||
|
|
||||||
constexpr uint64_t high() const noexcept { return high_; }
|
constexpr uint64_t high() const FMT_NOEXCEPT { return high_; }
|
||||||
constexpr uint64_t low() const noexcept { return low_; }
|
constexpr uint64_t low() const FMT_NOEXCEPT { return low_; }
|
||||||
|
|
||||||
uint128_wrapper& operator+=(uint64_t n) & noexcept {
|
uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT {
|
||||||
#if FMT_HAS_BUILTIN(__builtin_addcll)
|
#if FMT_HAS_BUILTIN(__builtin_addcll)
|
||||||
unsigned long long carry;
|
unsigned long long carry;
|
||||||
low_ = __builtin_addcll(low_, n, 0, &carry);
|
low_ = __builtin_addcll(low_, n, 0, &carry);
|
||||||
|
Reference in New Issue
Block a user