Skip to content

Commit 263ac1e

Browse files
committed
Simplify operator-
1 parent d47cd2c commit 263ac1e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

include/boost/decimal/decimal128_fast.hpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -873,17 +873,9 @@ constexpr auto operator-(decimal128_fast lhs, decimal128_fast rhs) noexcept -> d
873873

874874
const bool abs_lhs_bigger {abs(lhs) > abs(rhs)};
875875

876-
auto sig_lhs {lhs.full_significand()};
877-
auto exp_lhs {lhs.biased_exponent()};
878-
detail::normalize<decimal128>(sig_lhs, exp_lhs);
879-
880-
auto sig_rhs {rhs.full_significand()};
881-
auto exp_rhs {rhs.biased_exponent()};
882-
detail::normalize<decimal128>(sig_rhs, exp_rhs);
883-
884876
const auto result {detail::d128_sub_impl<detail::decimal128_fast_components>(
885-
sig_lhs, exp_lhs, lhs.sign_,
886-
sig_rhs, exp_rhs, rhs.sign_,
877+
lhs.significand_, lhs.biased_exponent(), lhs.sign_,
878+
rhs.significand_, rhs.biased_exponent(), rhs.sign_,
887879
abs_lhs_bigger
888880
)};
889881

0 commit comments

Comments
 (0)