diff options
Diffstat (limited to 'absl/numeric/int128.cc')
-rw-r--r-- | absl/numeric/int128.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/absl/numeric/int128.cc b/absl/numeric/int128.cc index 73a8f737af9f..00bf7f47a4a2 100644 --- a/absl/numeric/int128.cc +++ b/absl/numeric/int128.cc @@ -124,22 +124,22 @@ uint128::uint128(float v) : uint128(Initialize128FromFloat(v)) {} uint128::uint128(double v) : uint128(Initialize128FromFloat(v)) {} uint128::uint128(long double v) : uint128(Initialize128FromFloat(v)) {} -uint128& uint128::operator/=(const uint128& divisor) { +uint128& uint128::operator/=(uint128 other) { uint128 quotient = 0; uint128 remainder = 0; - DivModImpl(*this, divisor, "ient, &remainder); + DivModImpl(*this, other, "ient, &remainder); *this = quotient; return *this; } -uint128& uint128::operator%=(const uint128& divisor) { +uint128& uint128::operator%=(uint128 other) { uint128 quotient = 0; uint128 remainder = 0; - DivModImpl(*this, divisor, "ient, &remainder); + DivModImpl(*this, other, "ient, &remainder); *this = remainder; return *this; } -std::ostream& operator<<(std::ostream& o, const uint128& b) { +std::ostream& operator<<(std::ostream& o, uint128 b) { std::ios_base::fmtflags flags = o.flags(); // Select a divisor which is the largest power of the base < 2^64. |