File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
include/boost/decimal/detail Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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-
11392constexpr bool i256_sub_impl (const u256& a, const u256& b, u256& result) noexcept
11493{
11594 if (a >= b)
You can’t perform that action at this time.
0 commit comments