Skip to content

Commit d47cd2c

Browse files
committed
Simplify mixed operator+
1 parent 8e9613b commit d47cd2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/boost/decimal/decimal128_fast.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,7 @@ constexpr auto operator+(decimal128_fast lhs, Integer rhs) noexcept
806806
}
807807
bool abs_lhs_bigger {abs(lhs) > detail::make_positive_unsigned(rhs)};
808808

809-
auto sig_lhs {lhs.full_significand()};
810-
auto exp_lhs {lhs.biased_exponent()};
811-
detail::normalize<decimal128>(sig_lhs, exp_lhs);
812-
auto lhs_components {detail::decimal128_fast_components{sig_lhs, exp_lhs, lhs.isneg()}};
809+
auto lhs_components {detail::decimal128_fast_components{lhs.significand_, lhs.biased_exponent(), lhs.isneg()}};
813810

814811
auto sig_rhs {static_cast<detail::uint128>(detail::make_positive_unsigned(rhs))};
815812
std::int32_t exp_rhs {0};

0 commit comments

Comments
 (0)