Skip to content

Commit

Permalink
Clumsy coverage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Mar 1, 2021
1 parent 8d4d5c0 commit 18eda72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/intx/int128.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ inline constexpr uint128 umul(uint64_t x, uint64_t y) noexcept
#pragma GCC diagnostic pop
#endif

// LCOV_EXCL_START
// Portable full unsigned multiplication 64 x 64 -> 128.
uint64_t xl = x & 0xffffffff;
uint64_t xh = x >> 32;
Expand All @@ -391,6 +392,7 @@ inline constexpr uint128 umul(uint64_t x, uint64_t y) noexcept
uint64_t lo = (u2 << 32) | (t0 & 0xffffffff);
uint64_t hi = t3 + (u2 >> 32) + (u1 >> 32);
return {hi, lo};
// LCOV_EXCL_STOP
}

inline uint128 operator*(uint128 x, uint128 y) noexcept
Expand Down

0 comments on commit 18eda72

Please sign in to comment.