Skip to content

Commit 464e3fb

Browse files
committed
Remove unused function
1 parent f8a8e6f commit 464e3fb

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

include/boost/decimal/detail/i256.hpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,6 @@ constexpr std::uint64_t sub_borrow_u64(const std::uint64_t borrow_in, const std:
8989
return borrow_out;
9090
}
9191

92-
constexpr bool i256_sub_impl(const int128::uint128_t& a, const int128::uint128_t& b, u256& result) noexcept
93-
{
94-
if (a >= b)
95-
{
96-
std::uint64_t borrow {};
97-
result[0] = sub_borrow_u64(0, a.low, b.low, borrow);
98-
result[1] = sub_borrow_u64(borrow, a.high, b.high, borrow);
99-
100-
return false;
101-
}
102-
else
103-
{
104-
// a < b: negative result, |a - b| = b - a
105-
std::uint64_t borrow {};
106-
result[0] = sub_borrow_u64(0, b.low, a.low, borrow);
107-
result[1] = sub_borrow_u64(borrow, a.high, b.high, borrow);
108-
109-
return true;
110-
}
111-
}
112-
11392
constexpr bool i256_sub_impl(const u256& a, const u256& b, u256& result) noexcept
11493
{
11594
if (a >= b)

0 commit comments

Comments
 (0)