diff --git a/libc/src/__support/UInt.h b/libc/src/__support/UInt.h --- a/libc/src/__support/UInt.h +++ b/libc/src/__support/UInt.h @@ -35,12 +35,9 @@ static constexpr uint64_t low(uint64_t v) { return v & MASK32; } static constexpr uint64_t high(uint64_t v) { return (v >> 32) & MASK32; } - constexpr UInt() {} + constexpr UInt() = default; - constexpr UInt(const UInt &other) { - for (size_t i = 0; i < WORDCOUNT; ++i) - val[i] = other.val[i]; - } + constexpr UInt(const UInt &other) = default; template constexpr UInt(const UInt &other) { if (OtherBits >= Bits) { @@ -90,11 +87,7 @@ return uint8_t(uint64_t(*this)); } - UInt &operator=(const UInt &other) { - for (size_t i = 0; i < WORDCOUNT; ++i) - val[i] = other.val[i]; - return *this; - } + UInt &operator=(const UInt &other) = default; constexpr bool is_zero() const { for (size_t i = 0; i < WORDCOUNT; ++i) {